summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
authornima <nima@abc39116-655e-4be6-ad55-d661dc543056>2009-03-10 01:53:51 +0000
committernima <nima@abc39116-655e-4be6-ad55-d661dc543056>2009-03-10 01:53:51 +0000
commit17cfe3a41998c075991a54a6deace28ba7744ed6 (patch)
tree76b63b8b927bdbb544fa2de66747baa5cd3da058 /debian/rules
parentf60a804e9d0bb4be0a2a7c37819f4deb64eb0535 (diff)
downloadpython-dmidecode-17cfe3a41998c075991a54a6deace28ba7744ed6.tar.gz
python-dmidecode-17cfe3a41998c075991a54a6deace28ba7744ed6.tar.xz
python-dmidecode-17cfe3a41998c075991a54a6deace28ba7744ed6.zip
Fixes.
git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@178 abc39116-655e-4be6-ad55-d661dc543056
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules22
1 files changed, 3 insertions, 19 deletions
diff --git a/debian/rules b/debian/rules
index 63a950b..5e4d832 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,14 +4,9 @@ export DH_VERBOSE=0
PACKAGE = $(shell dh_listpackages)
PYVERS = $(shell pyversions -vr)
-AGE = $(strip $(wildcard $(HOME)/bin/age))
-CACHE_AGE = 86400
-UPSTREAM_CHANGELOG = /tmp/python-dmidecode.upstream.changelog
-CL_EXISTS = `test -f $(UPSTREAM_CHANGELOG) && echo 1 || echo 0`
-
################################################################################
#. Build
-build: $(UPSTREAM_CHANGELOG) build-stamp
+build: build-stamp
build-stamp: $(PYVERS:%=build-ext-%) $(PYVERS:%=build-dbg-ext-%)
dh_testdir
touch $@
@@ -22,19 +17,14 @@ build-dbg-ext-%:
python$*-dbg src/setup-dbg.py build
touch $@
-$(UPSTREAM_CHANGELOG):
- svn log > $@
-
################################################################################
#. Install
-install: $(UPSTREAM_CHANGELOG) install-stamp
+install: install-stamp
dh_testdir
dh_testroot
dh_installdirs
dh_installchangelogs
dh_installdocs
- install $(UPSTREAM_CHANGELOG) debian/python-dmidecode/usr/share/doc/python-dmidecode/changelog
- install $(UPSTREAM_CHANGELOG) debian/python-dmidecode-dbg/usr/share/doc/python-dmidecode-dbg/changelog
dh_installexamples
dh_install
dh_pycentral
@@ -68,17 +58,11 @@ binary-arch: build install
################################################################################
#. Clean
-clean: CL_AGE := $(CACHE_AGE)
-ifeq ($(CL_EXISTS),1)
-ifneq ($(AGE),)
-clean: CL_AGE := $(shell $(AGE) $(UPSTREAM_CHANGELOG))
-endif
-endif
clean:
dh_testdir
dh_testroot
$(MAKE) -f Makefile clean
- test $(CL_AGE) -le $(CACHE_AGE) || dh_clean $(UPSTREAM_CHANGELOG)
+ test $(CL_AGE) -le $(CACHE_AGE) || dh_clean
dh_clean build-stamp install-stamp \
$(PYVERS:%=install-ext-%) $(PYVERS:%=build-ext-%) \
$(PYVERS:%=install-dbg-ext-%) $(PYVERS:%=build-dbg-ext-%)