summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules31
1 files changed, 31 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..1ef510d
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,31 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+#export DH_VERBOSE=1
+
+build: build-indep
+
+build-indep:
+ dh build --before auto_build
+ /usr/bin/python setup.py build
+ /usr/bin/python tests/compare.py
+ dh build --after auto_build
+ touch $@
+
+clean:
+ dh clean --with python_central
+ rm -rf $(CURDIR)/tests/testscript.sh $(CURDIR)/tests/unreadable-file.*
+ /usr/bin/python setup.py clean
+
+install: build
+ dh install --with python_central --before auto_install
+ /usr/bin/python setup.py install --root $(CURDIR)/debian/dtrx
+ dh install --with python_central --after auto_install
+
+binary: binary-arch binary-indep
+
+binary-arch:
+
+binary-indep: build install
+ dh binary-indep --with python_central
+
+.PHONY: build clean binary-arch binary-indep binary install