]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/blob - misc/debian/rules.sid
new approach for debian packaging, sharing pieces across distributions. Still experim...
[tahoe-lafs/tahoe-lafs.git] / misc / debian / rules.sid
1 #! /usr/bin/make -f
2 # Uncomment this to turn on verbose mode.
3 #export DH_VERBOSE=1
4
5 DEB_PYTHON_SYSTEM=pycentral
6
7 include /usr/share/cdbs/1/rules/debhelper.mk
8 include /usr/share/cdbs/1/class/python-distutils.mk
9
10 # this ought to be the name of the package that we're building, which is
11 # different on each tahoe branch. debian/control is the master: whatever
12 # package is listed in there will be built.
13 DEBNAME := $(firstword $(DEB_PACKAGES))
14
15 STAGING_DIR := $(CURDIR)/debian/$(DEBNAME)
16
17 DEB_INSTALL_DOCS_ALL := COPYING.TGPPL.html CREDITS NEWS README relnotes.txt \
18  docs misc/spacetime misc/cpu-watcher.tac
19 DEB_COMPRESS_EXCLUDE := .tac
20
21 install/$(DEBNAME)::
22         dh_install misc/munin/* usr/share/$(DEBNAME)/munin
23         chmod +x $(STAGING_DIR)/usr/share/$(DEBNAME)/munin/*
24         chmod -x $(STAGING_DIR)/usr/share/$(DEBNAME)/munin/*-conf
25
26 # the base rules do "python setup.py clean", which spuriously downloads and
27 # builds several setuptools-extensions eggs. The tahoe 'setup.py clean'
28 # leaves those and many other files in place, but its "make clean" does the
29 # right thing. Putting this double-colon rule after the 'include' statements
30 # above should ensure that it runs after the base rules.
31
32 clean::
33         $(MAKE) clean
34