~dobey/changeup/trunk

« back to all changes in this revision

Viewing changes to Makefile.am

  • Committer: Rodney Dawes
  • Date: 2010-02-08 22:37:29 UTC
  • Revision ID: rodney.dawes@canonical.com-20100208223729-r4bqi0x4j8yxb77q
Move client.py code into changeup/__init__.py
Add a .bzrignore
Add the COPYING
Add a build system
Update the dispatcher and test code to not use changeup.client

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
SUBDIRS = changeup
 
2
 
 
3
# Install our scripts and extra data here
 
4
libexec_SCRIPTS = changeup-dispatcher
 
5
 
 
6
servicedir = $(DBUS_SERVICES_DIR)
 
7
service_in_files = changeup.service.in
 
8
service_DATA = $(service_in_files:.service.in=.service)
 
9
 
 
10
%.service: %.service.in Makefile
 
11
        @sed -e "s|\@LIBEXECDIR\@|$(libexecdir)|g" $< > $@
 
12
 
 
13
lint: Makefile
 
14
        $(PYFLAKES) $(srcdir)/changeup $(srcdir)/tests
 
15
 
 
16
test: Makefile
 
17
        if [ -d tests ]; then \
 
18
                $(TRIAL) tests; \
 
19
        fi
 
20
        rm -rf _trial_temp
 
21
 
 
22
check: lint test Makefile
 
23
 
 
24
clean-local:
 
25
        rm -rf contrib/*.pyc
 
26
        rm -rf tests/*.pyc
 
27
        rm -rf _trial_temp
 
28
 
 
29
CLEANFILES =                    \
 
30
        $(service_DATA)
 
31
 
 
32
EXTRA_DIST =                    \
 
33
        $(libexec_SCRIPTS)      \
 
34
        $(service_in_files)     \
 
35
        contrib/__init__.py     \
 
36
        contrib/mocker.py       \
 
37
        tests/__init__.py       \
 
38
        tests/test_dispatcher.py        \
 
39
        tests/test_client.py
 
40
 
 
41
MAINTAINERCLEANFILES =  \
 
42
        Makefile.in     \
 
43
        aclocal.m4      \
 
44
        config.guess    \
 
45
        config.sub      \
 
46
        configure       \
 
47
        depcomp         \
 
48
        install-sh      \
 
49
        missing         \
 
50
        mkinstalldirs