aboutsummaryrefslogtreecommitdiff
path: root/contrib/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/debian/rules')
-rwxr-xr-xcontrib/debian/rules21
1 files changed, 6 insertions, 15 deletions
diff --git a/contrib/debian/rules b/contrib/debian/rules
index 98bb2bba1c..52b357cf01 100755
--- a/contrib/debian/rules
+++ b/contrib/debian/rules
@@ -11,23 +11,14 @@ DEB_INSTALL_MANPAGES_bitcoind += debian/manpages/*
%:
dh --with bash-completion $@
-override_dh_auto_build:
- cd src; $(MAKE) -f makefile.unix bitcoind
- $(MAKE)
-
override_dh_auto_clean:
- if [ -f Makefile ]; then $(MAKE) clean; else rm -rf build/; rm -f bitcoin-qt; fi
- cd src; $(MAKE) -f makefile.unix clean
+ if [ -f Makefile ]; then $(MAKE) distclean; fi
+ rm -rf Makefile.in aclocal.m4 configure src/Makefile.in src/bitcoin-config.h.in src/build-aux src/qt/Makefile.in src/qt/test/Makefile.in src/test/Makefile.in
+# Yea, autogen should be run on the source archive, but I like doing git archive
override_dh_auto_configure:
- qmake bitcoin-qt.pro USE_QRCODE=1
+ ./autogen.sh
+ ./configure
override_dh_auto_test:
- cd src; $(MAKE) -f makefile.unix test_bitcoin
- src/test_bitcoin
-
-# Ensure wrapper is set executable
-binary-post-install/bitcoind:
- chmod +x $(cdbs_curdestdir)usr/bin/bitcoind
-binary-post-install/bitcoin-qt:
- chmod +x $(cdbs_curdestdir)usr/bin/bitcoin-qt
+ make check