~dobey/changeup/trunk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
SUBDIRS = changeup

# Install our scripts and extra data here
libexec_SCRIPTS = changeup-dispatcher

servicedir = $(DBUS_SERVICES_DIR)
service_in_files = changeup.service.in
service_DATA = $(service_in_files:.service.in=.service)

%.service: %.service.in Makefile
	@sed -e "s|\@LIBEXECDIR\@|$(libexecdir)|g" $< > $@

lint: Makefile
	$(PYFLAKES) $(srcdir)/changeup $(srcdir)/tests

test: Makefile
	if [ -d tests ]; then \
		$(TRIAL) tests; \
	fi
	rm -rf _trial_temp

check: lint test Makefile

clean-local:
	rm -rf contrib/*.pyc
	rm -rf tests/*.pyc
	rm -rf _trial_temp

CLEANFILES =			\
	$(service_DATA)

EXTRA_DIST =			\
	$(libexec_SCRIPTS)	\
	$(service_in_files)	\
	contrib/__init__.py	\
	contrib/mocker.py	\
	tests/__init__.py	\
	tests/test_dispatcher.py	\
	tests/test_client.py

MAINTAINERCLEANFILES =	\
	Makefile.in	\
	aclocal.m4	\
	config.guess	\
	config.sub	\
	configure	\
	depcomp		\
	install-sh	\
	missing		\
	mkinstalldirs