~didrocks/ubuntuone-client/use_result_var

« back to all changes in this revision

Viewing changes to Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Rodney Dawes
  • Date: 2011-02-11 16:18:11 UTC
  • mto: This revision was merged to the branch mainline in revision 67.
  • Revision ID: james.westby@ubuntu.com-20110211161811-n18dj9lde7dxqjzr
Tags: upstream-1.5.4
ImportĀ upstreamĀ versionĀ 1.5.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
PYTHONPATH="$(SSO_PATH):$(USP_PATH):$(top_builddir):$(top_srcdir)"
8
8
 
9
9
# Python packages we want to install
10
 
pypackages =                            \
11
 
        ubuntuone/api                   \
12
 
        ubuntuone/credentials           \
13
 
        ubuntuone/eventlog              \
14
 
        ubuntuone/platform              \
15
 
        ubuntuone/platform/linux        \
16
 
        ubuntuone/platform/windows      \
17
 
        ubuntuone/status                \
18
 
        ubuntuone/syncdaemon/fsm        \
19
 
        ubuntuone/syncdaemon            \
20
 
        ubuntuone/u1sync                \
21
 
        ubuntuone
 
10
pythonpkgdir = $(pythondir)/$(PACKAGE)
 
11
pypackages =    \
 
12
        ubuntuone       \
 
13
        $(shell SRCDIR="ubuntuone"; for i in `find $$SRCDIR -type d`; do DIRNAME=`basename $$i`; if [ "x$$DIRNAME" != "xtest" ]; then printf "$$i "; fi; done)
22
14
 
23
15
# Install our scripts and extra data here
24
16
bin_SCRIPTS =                           \
25
 
        bin/ubuntuone-preferences       \
26
17
        bin/ubuntuone-launch            \
27
 
        bin/u1sdtool                    \
28
 
        bin/u1sync
 
18
        bin/u1sdtool
29
19
 
30
20
libexec_SCRIPTS =                       \
31
21
        bin/ubuntuone-syncdaemon        \
32
22
        bin/ubuntuone-login
33
23
 
34
 
clientdefsdir = $(pythondir)/ubuntuone
 
24
clientdefsdir = $(pythonpkgdir)/ubuntuone
35
25
clientdefs_in_files = ubuntuone/clientdefs.py.in
36
26
clientdefs_DATA = $(clientdefs_in_files:.py.in=.py)
37
27
 
63
53
test: logging.conf $(clientdefs_DATA) Makefile
64
54
        echo "$(PYTHONPATH)"
65
55
        if test "x$(builddir)" == "x$(srcdir)"; then \
66
 
                PYTHONPATH="$(PYTHONPATH)" u1trial tests; \
 
56
                PYTHONPATH="$(PYTHONPATH)" u1trial tests -p tests/platform/windows; \
67
57
        fi
68
58
        rm -rf _trial_temp
69
59
 
109
99
 
110
100
install-data-local: $(clientdefs_DATA)
111
101
        for package in $(pypackages); do \
112
 
                $(mkdir_p) $(DESTDIR)$(pythondir)/$$package; \
 
102
                $(mkdir_p) $(DESTDIR)$(pythonpkgdir)/$$package; \
113
103
                for module in $(top_srcdir)/$$package/*.py; do \
114
 
                        $(install_sh_DATA) $$module $(DESTDIR)$(pythondir)/$$package; \
 
104
                        $(install_sh_DATA) $$module $(DESTDIR)$(pythonpkgdir)/$$package; \
115
105
                done; \
116
106
        done
 
107
        echo "$(PACKAGE)" > $(DESTDIR)$(pythondir)/$(PACKAGE).pth
117
108
 
118
109
uninstall-local:
119
110
        for package in $(pypackages); do \
120
111
                for module in $(top_srcdir)/$$package/*.py; do \
121
112
                        modname=`basename $$module`; \
122
 
                        rm -f $(DESTDIR)$(pythondir)/$$package/$$modname; \
 
113
                        rm -f $(DESTDIR)$(pythonpkgdir)/$$package/$$modname; \
123
114
                done; \
124
 
                rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(pythondir)/$$package; \
 
115
                rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(pythonpkgdir)/$$package; \
125
116
        done
 
117
        rm -f $(DESTDIR)$(pythondir)/$(PACKAGE).pth
126
118
 
127
119
clean-local:
128
120
        for i in `find $(builddir) -name "*.pyc"`; do \