summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-04-16 23:34:08 +0100
committerCarl Hetherington <cth@carlh.net>2016-04-16 23:34:08 +0100
commitbde215ea2c306bd011a6ccd1d5ba5f3002288dc5 (patch)
treef3d3e876169aeddc90ef0afe39ba6bddbfe5d643 /debian/rules
parent5428ba193aff7b55dcc4b31ee92fd40ecea591f5 (diff)
Builds .debs.
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules15
1 files changed, 13 insertions, 2 deletions
diff --git a/debian/rules b/debian/rules
index 5c1cebc..6f02d89 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,7 @@
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
-#export DH_VERBOSE = 1
+export DH_VERBOSE = 1
# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
DPKG_EXPORT_BUILDFLAGS = 1
@@ -19,7 +19,7 @@ include /usr/share/dpkg/default.mk
# main packaging script based on dh7 syntax
%:
- dh $@
+ dh $@
# dh_make generated override targets
# This is example for Cmake (See https://bugs.debian.org/641051 )
@@ -27,6 +27,17 @@ include /usr/share/dpkg/default.mk
# dh_auto_configure -- \
# -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
+override_dh_auto_clean:
+ ./waf clean || true
+ find -name "*.pyc" -delete
+ rm -rf build .waf* .lock-waf*
+ dh_auto_clean
+override_dh_auto_configure:
+ ./waf configure --prefix=/usr
+override_dh_auto_build:
+ ./waf
+override_dh_auto_install:
+ ./waf install -f --destdir=debian/tmp