summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 02eb4e6)
raw | patch | inline | side by side (parent: 02eb4e6)
author | Bernd Zeimetz <bzed@debian.org> | |
Sat, 9 Feb 2008 22:48:11 +0000 (23:48 +0100) | ||
committer | Bernd Zeimetz <bzed@debian.org> | |
Sat, 9 Feb 2008 22:48:11 +0000 (23:48 +0100) |
containing something useful)...
debian/rules | patch | blob | history |
diff --git a/debian/rules b/debian/rules
index d495b9a21ef90f7a782536dafad459121d2ea700..1c8d9c463c671870e0e8a59089059ccc5c9bfef9 100755 (executable)
--- a/debian/rules
+++ b/debian/rules
BUILDLIBDIR=../../src/.libs LIBDIR=../../src/.libs python$* setup.py build
touch $@
-build-indep: build-indep-stamp
-build-indep-stamp: config.status
+build-indep: build-arch-stamp
+ #indep stuff is built in build-arch-stamp, too.
clean: clean-patched
clean-patched: unpatch $(PY_VERS:%=clean-python%)
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
rm -f config.guess
endif
- rm -f build-arch-stamp build-indep-stamp config.status
+ rm -f build-arch-stamp build-indep-stamp config.status install-common-stamp
find . -name \*.pyc | xargs rm -f
rm -rf bindings/python/build
python$* setup.py clean
rm -f build-python$*
-install: install-arch
-install-arch: $(PY_VERS:%=install-python%)
+install: install-arch install-indep
+
+install-indep: build-indep install-common-stamp
+ #nothing to do
+
+install-common-stamp: build-arch-stamp
dh_testdir
dh_testroot
- dh_clean -k -s -Npython-rrdtool
- dh_installdirs -s
+ dh_clean -k
make install DESTDIR=$(CURDIR)/debian/tmp
+ dh_install --sourcedir=$(CURDIR)/debian/tmp
+
+ touch $@
+install-arch: install-common-stamp $(PY_VERS:%=install-python%)
#build and install ruby
set -e; \
cd bindings/ruby ;\
make distclean ;\
done
- dh_install -s --sourcedir=$(CURDIR)/debian/tmp
dh_installexamples -s
-install-python%:
+install-python%: install-common-stamp
dh_testdir
dh_testroot
set -e ;\
python$* setup.py install --root=$(CURDIR)/debian/python-rrdtool
-binary-indep:
+binary-indep: build-indep install-indep
dh_testdir
dh_testroot
dh_clean -k -i