44.2.1
by Rodney Dawes
Switch the build system primarily to autotools with working build/install |
1 |
DISTCHECK_CONFIGURE_FLAGS = --disable-rendering |
2 |
||
3 |
SUBDIRS = data nautilus po |
|
4 |
||
5 |
# Shut libtoolize up
|
|
6 |
ACLOCAL_AMFLAGS = -I m4 |
|
7 |
||
83.2.1
by Rodney Dawes
Move pylint running/parsing code to an external wrapper script |
8 |
# PYTHONPATH for local Python scripts
|
9 |
PYTHONPATH="$(top_builddir):$(top_srcdir)" |
|
44.2.1
by Rodney Dawes
Switch the build system primarily to autotools with working build/install |
10 |
|
11 |
# Python packages we want to install
|
|
57.3.1
by Rodney Dawes
Remove the canonical namespace, and just use ubuntuone as the toplevel |
12 |
pypackages = \ |
13 |
ubuntuone/oauthdesktop \
|
|
14 |
ubuntuone/syncdaemon/fsm \
|
|
15 |
ubuntuone/syncdaemon \
|
|
79.1.1
by Rodney Dawes
No really, I mean it this time, install clientdefs |
16 |
ubuntuone/u1sync \
|
17 |
ubuntuone |
|
44.2.1
by Rodney Dawes
Switch the build system primarily to autotools with working build/install |
18 |
|
19 |
# Install our scripts and extra data here
|
|
20 |
bin_SCRIPTS = \ |
|
21 |
bin/ubuntuone-client-applet \
|
|
221.1.1
by Rodney Dawes
Split the preferences dialog to a separate app |
22 |
bin/ubuntuone-client-preferences \
|
44.2.1
by Rodney Dawes
Switch the build system primarily to autotools with working build/install |
23 |
bin/u1sdtool \
|
24 |
bin/u1sync |
|
25 |
||
26 |
libexec_SCRIPTS = bin/ubuntuone-syncdaemon |
|
27 |
||
28 |
manfilesdir = $(mandir)/man1 |
|
29 |
manfiles_DATA = \ |
|
221.1.1
by Rodney Dawes
Split the preferences dialog to a separate app |
30 |
docs/man/ubuntuone-client-preferences.1 \
|
44.2.1
by Rodney Dawes
Switch the build system primarily to autotools with working build/install |
31 |
docs/man/ubuntuone-client-applet.1 \
|
32 |
docs/man/u1sdtool.1 \
|
|
33 |
docs/man/u1sync.1 |
|
34 |
||
92.2.1
by Rodney Dawes
Use the pythondir specified by the AM_PATH_PYTHON magic by default |
35 |
clientdefsdir = $(pythondir)/ubuntuone |
83.2.1
by Rodney Dawes
Move pylint running/parsing code to an external wrapper script |
36 |
clientdefs_in_files = ubuntuone/clientdefs.py.in |
69.1.4
by David Planella
Enabled i18n support |
37 |
clientdefs_DATA = $(clientdefs_in_files:.py.in=.py) |
38 |
||
44.2.1
by Rodney Dawes
Switch the build system primarily to autotools with working build/install |
39 |
# Don't end up pulling in storage-protocol source as well
|
83.2.1
by Rodney Dawes
Move pylint running/parsing code to an external wrapper script |
40 |
pyfiles = $(shell SRCDIR="$(top_srcdir)/ubuntuone"; for i in `find $$SRCDIR -type f -name "*.py"`; do if [ ! -f $$i.in ]; then printf "$$i "; fi; done) |
44.2.1
by Rodney Dawes
Switch the build system primarily to autotools with working build/install |
41 |
|
83.2.1
by Rodney Dawes
Move pylint running/parsing code to an external wrapper script |
42 |
$(clientdefs_DATA): $(clientdefs_in_files) ubuntuone |
174.1.1
by Rodney Dawes
Handle the fatal error a lot better and try to run syncdaemon |
43 |
sed -e 's|\@localedir\@|$(localedir)|g' \ |
44 |
-e 's|\@libexecdir\@|$(libexecdir)|g' \ |
|
45 |
-e 's|\@GETTEXT_PACKAGE\@|$(GETTEXT_PACKAGE)|g' \ |
|
46 |
-e 's|\@VERSION\@|$(VERSION)|g' < $< > $@ |
|
69.1.5
by David Planella
Moved localedir substitution from configure.ac to Makefile.am |
47 |
|
83.2.1
by Rodney Dawes
Move pylint running/parsing code to an external wrapper script |
48 |
pylintrc: Makefile |
49 |
if test "x$(builddir)" != "x$(srcdir)"; then \
|
|
50 |
if [ ! -e pylintrc -a ! -h pylintrc ]; then \
|
|
51 |
$(LN_S) $(srcdir)/pylintrc; \
|
|
52 |
fi; \
|
|
53 |
fi
|
|
54 |
||
92.2.1
by Rodney Dawes
Use the pythondir specified by the AM_PATH_PYTHON magic by default |
55 |
lint: protocol pylintrc Makefile |
97.1.1
by Rodney Dawes
Add pyflakes support to pylint-wrapper |
56 |
PYTHONPATH="$(PYTHONPATH)" SRCDIR="$(srcdir)" USE_PYFLAKES="true" \ |
83.2.1
by Rodney Dawes
Move pylint running/parsing code to an external wrapper script |
57 |
$(PYTHON) $(srcdir)/contrib/pylint-wrapper |
58 |
||
59 |
check: lint Makefile |
|
44.2.1
by Rodney Dawes
Switch the build system primarily to autotools with working build/install |
60 |
if test "x$(builddir)" == "x$(srcdir)"; then \
|
61 |
PYTHONPATH="$(PYTHONPATH)" $(PYTHON) $(srcdir)/contrib/test; \
|
|
62 |
fi
|
|
63 |
rm -rf _trial_temp |
|
64 |
||
83.2.1
by Rodney Dawes
Move pylint running/parsing code to an external wrapper script |
65 |
protocol: ubuntuone Makefile |
65.2.1
by Rodney Dawes
Fix the storage protocol checking to be stricter |
66 |
PROTOCOL="ubuntuone/storageprotocol"; \ |
92.2.1
by Rodney Dawes
Use the pythondir specified by the AM_PATH_PYTHON magic by default |
67 |
if [ ! -d $(USP_PATH) ]; then \
|
68 |
echo "ERROR: Not found: $(USP_PATH)"; \
|
|
69 |
exit 1; \
|
|
70 |
fi; \
|
|
83.2.1
by Rodney Dawes
Move pylint running/parsing code to an external wrapper script |
71 |
if [ ! -e $$PROTOCOL -a ! -h $$PROTOCOL ]; then \
|
72 |
$(LN_S) $(USP_PATH) $$PROTOCOL; \
|
|
73 |
elif [ ! -e $$PROTOCOL -a -h $$PROTOCOL ]; then \
|
|
92.2.1
by Rodney Dawes
Use the pythondir specified by the AM_PATH_PYTHON magic by default |
74 |
rm -f $$PROTOCOL; \
|
75 |
$(LN_S) $(USP_PATH) $$PROTOCOL; \
|
|
83.2.1
by Rodney Dawes
Move pylint running/parsing code to an external wrapper script |
76 |
fi
|
77 |
||
78 |
ubuntuone: Makefile |
|
79 |
if test "x$(builddir)" != "x$(srcdir)"; then \
|
|
80 |
$(mkdir_p) ubuntuone; \
|
|
81 |
$(mkdir_p) tests; \
|
|
82 |
(cd ubuntuone && $(LNDIR) $(srcdir)/../ubuntuone > /dev/null); \
|
|
83 |
(cd tests && $(LNDIR) $(srcdir)/../tests > /dev/null); \
|
|
84 |
fi
|
|
85 |
||
86 |
all-local: protocol pylintrc $(clientdefs_DATA) |
|
56.1.1
by Rodney Dawes
Fix the protocol "build" bits to work better |
87 |
|
72.1.1
by Rodney Dawes
Move the u1fsfsm rebuilding out of setup.py and into Makefile.am |
88 |
sd_path = ubuntuone/syncdaemon |
89 |
||
90 |
u1fsfsm: $(srcdir)/ubuntuone/syncdaemon/u1fsfsm.ods |
|
91 |
PYTHONPATH=$(PYTHONPATH) \ |
|
92 |
HAS_OOFFICE="true" \ |
|
93 |
XDG_CACHE_HOME="$(builddir)/_trial_temp/xdg_cache" \ |
|
94 |
$(PYTHON) -t $(srcdir)/$(sd_path)/fsm/fsm_parser.py \ |
|
95 |
-o $(builddir)/$(sd_path)/u1fsfsm.py $< |
|
96 |
PYTHONPATH=$(PYTHONPATH) \ |
|
97 |
HAS_OOFFICE="true" \ |
|
98 |
XDG_CACHE_HOME="$(builddir)/_trial_temp/xdg_cache" \ |
|
99 |
$(PYTHON) -t $(srcdir)/$(sd_path)/fsm/fsm.py \ |
|
100 |
$(srcdir)/$(sd_path)/u1fsfsm.py |
|
101 |
||
83.2.1
by Rodney Dawes
Move pylint running/parsing code to an external wrapper script |
102 |
install-data-local: $(clientdefs_DATA) |
44.2.1
by Rodney Dawes
Switch the build system primarily to autotools with working build/install |
103 |
for package in $(pypackages); do \ |
92.2.1
by Rodney Dawes
Use the pythondir specified by the AM_PATH_PYTHON magic by default |
104 |
$(mkdir_p) $(DESTDIR)$(pythondir)/$$package; \ |
44.2.1
by Rodney Dawes
Switch the build system primarily to autotools with working build/install |
105 |
for module in $(top_srcdir)/$$package/*.py; do \ |
92.2.1
by Rodney Dawes
Use the pythondir specified by the AM_PATH_PYTHON magic by default |
106 |
$(install_sh_DATA) $$module $(DESTDIR)$(pythondir)/$$package; \ |
44.2.1
by Rodney Dawes
Switch the build system primarily to autotools with working build/install |
107 |
done; \ |
108 |
done
|
|
109 |
||
110 |
uninstall-local: |
|
111 |
for package in $(pypackages); do \ |
|
112 |
for module in $(top_srcdir)/$$package/*.py; do \ |
|
113 |
modname=`basename $$module`; \ |
|
92.2.1
by Rodney Dawes
Use the pythondir specified by the AM_PATH_PYTHON magic by default |
114 |
rm -f $(DESTDIR)$(pythondir)/$$package/$$modname; \ |
44.2.1
by Rodney Dawes
Switch the build system primarily to autotools with working build/install |
115 |
done; \ |
92.2.1
by Rodney Dawes
Use the pythondir specified by the AM_PATH_PYTHON magic by default |
116 |
rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(pythondir)/$$package; \ |
44.2.1
by Rodney Dawes
Switch the build system primarily to autotools with working build/install |
117 |
done
|
118 |
||
119 |
clean-local: |
|
120 |
for i in `find $(builddir) -name "*.pyc"`; do \ |
|
121 |
rm -f $$i; \ |
|
122 |
done
|
|
57.3.1
by Rodney Dawes
Remove the canonical namespace, and just use ubuntuone as the toplevel |
123 |
rm -f ubuntuone/storageprotocol |
44.2.1
by Rodney Dawes
Switch the build system primarily to autotools with working build/install |
124 |
rm -rf build dist _trial_temp |
125 |
||
126 |
EXTRA_DIST = \ |
|
72.1.1
by Rodney Dawes
Move the u1fsfsm rebuilding out of setup.py and into Makefile.am |
127 |
$(srcdir)/ubuntuone/syncdaemon/u1fsfsm.ods \ |
44.2.1
by Rodney Dawes
Switch the build system primarily to autotools with working build/install |
128 |
$(pyfiles) \ |
69.1.4
by David Planella
Enabled i18n support |
129 |
$(clientdefs_in_files) \ |
44.2.1
by Rodney Dawes
Switch the build system primarily to autotools with working build/install |
130 |
COPYING.icons \
|
73.1.1
by Rodney Dawes
Add a HACKING file describing the baasic development process |
131 |
HACKING \
|
44.2.1
by Rodney Dawes
Switch the build system primarily to autotools with working build/install |
132 |
bin \
|
133 |
contrib \
|
|
134 |
docs \
|
|
135 |
tests \
|
|
83.2.1
by Rodney Dawes
Move pylint running/parsing code to an external wrapper script |
136 |
pylintrc |
44.2.1
by Rodney Dawes
Switch the build system primarily to autotools with working build/install |
137 |
|
77.1.1
by Rodney Dawes
Make sure we always builds clientdefs.py |
138 |
CLEANFILES = \ |
139 |
$(clientdefs_DATA) |
|
140 |
||
44.2.1
by Rodney Dawes
Switch the build system primarily to autotools with working build/install |
141 |
MAINTAINERCLEANFILES = \ |
142 |
Makefile.in \
|
|
143 |
aclocal.m4 \
|
|
144 |
config.guess \
|
|
145 |
config.h.in \
|
|
146 |
config.sub \
|
|
147 |
configure \
|
|
148 |
depcomp \
|
|
149 |
install-sh \
|
|
150 |
libtool \
|
|
151 |
ltmain.sh \
|
|
152 |
missing \
|
|
26.5.1
by Rodney Dawes
Initial bits to use autotools for porting nautilus extension to C |
153 |
mkinstalldirs |