diff options
| author | nima <nima@abc39116-655e-4be6-ad55-d661dc543056> | 2008-12-19 02:23:32 +0000 |
|---|---|---|
| committer | nima <nima@abc39116-655e-4be6-ad55-d661dc543056> | 2008-12-19 02:23:32 +0000 |
| commit | e620d0a9d88875c425741ad2d40579e61cdd15b0 (patch) | |
| tree | cbf2594af347cfdcc83b370f999d80de3f2e2797 /debian/rules | |
| parent | c19f68cb27021c0fd5e0ad1962ff9547bd616e23 (diff) | |
| download | python-dmidecode-e620d0a9d88875c425741ad2d40579e61cdd15b0.tar.gz python-dmidecode-e620d0a9d88875c425741ad2d40579e61cdd15b0.tar.xz python-dmidecode-e620d0a9d88875c425741ad2d40579e61cdd15b0.zip | |
Removed junk and doing more debianizing - WIP.
git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@118 abc39116-655e-4be6-ad55-d661dc543056
Diffstat (limited to 'debian/rules')
| -rwxr-xr-x | debian/rules | 89 |
1 files changed, 30 insertions, 59 deletions
diff --git a/debian/rules b/debian/rules index 2c60a2c..98488c4 100755 --- a/debian/rules +++ b/debian/rules @@ -1,69 +1,48 @@ #!/usr/bin/make -f -# -*- makefile -*- -# Sample debian/rules that uses debhelper. -# This file was originally written by Joey Hess and Craig Small. -# As a special exception, when this file is copied by dh-make into a -# dh-make output file, you may use that output file without restriction. -# This special exception was added by Craig Small in version 0.37 of dh-make. -# Uncomment this to turn on verbose mode. -#export DH_VERBOSE=1 - - - - -CFLAGS = -Wall -g - -ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) - CFLAGS += -O0 -else - CFLAGS += -O2 -endif - -configure: configure-stamp -configure-stamp: - dh_testdir - # Add here commands to configure the package. - - touch configure-stamp +export DH_VERBOSE=1 +PYDEF = $(shell pyversions -d) +PYVERS = $(shell pyversions -r) +PYVERS = python2.4 python2.5 +############# +### Build ### build: build-stamp - -build-stamp: configure-stamp +build-stamp: $(PYVERS:%=build-ext-%) dh_testdir - - # Add here commands to compile the package. - $(MAKE) -f dmidecode.makefile #docbook-to-man debian/dmidecode.sgml > dmidecode.1 - + #$(MAKE) -f dmidecode.makefile touch $@ +build-ext-%: + $(subst $(PYDEF),python,$*) src/setup.py build -clean: + +############### +### Install ### +install: install-stamp dh_testdir dh_testroot - rm -f build-stamp configure-stamp + dh_installdirs + #$(MAKE) DESTDIR=$(CURDIR)/debian/dmidecode install +install-stamp: build-stamp $(PYVERS:%=install-ext-%) +install-ext-%: + $(subst $(PYDEF),python,$*) src/setup.py install --root $(CURDIR)/debian/python-dmidecode - # Add here commands to clean up after the build process. - -$(MAKE) -f dmidecode.makefile clean - dh_clean - -install: build +############# +### Clean ### +clean: dh_testdir dh_testroot - dh_clean -k - dh_installdirs - - # Add here commands to install the package into debian/dmidecode. - #$(MAKE) DESTDIR=$(CURDIR)/debian/dmidecode install + -rm -f build-stamp configure-stamp + -rm -rf $(CURDIR)/debian/python-dmidecode + -$(MAKE) -f dmidecode.makefile clean + dh_clean -# Build architecture-independent files here. binary-indep: build install -# We have nothing to do by default. -# Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot @@ -71,27 +50,19 @@ binary-arch: build install dh_installdocs dh_installexamples dh_install -# dh_installmenu -# dh_installdebconf -# dh_installlogrotate -# dh_installemacsen -# dh_installpam -# dh_installmime +# # dh_python -# dh_installinit -# dh_installcron -# dh_installinfo +# dh_pysupport + dh_pycentral +# dh_installman dh_link dh_strip dh_compress dh_fixperms -# dh_perl # dh_makeshlibs dh_installdeb dh_shlibdeps - dh_pysupport - dh_pycentral dh_gencontrol dh_md5sums dh_builddeb |
