aboutsummaryrefslogtreecommitdiff
path: root/contrib/debian/rules
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-04-27 08:40:22 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2014-04-27 08:49:36 +0200
commit814df91269c4d05108e33554ed0ce244bc637395 (patch)
treed6ccfa2e313d90e965d8b42486435c2253802786 /contrib/debian/rules
parent4765b8c11679aeb76efd9ce907a5c17661d4b018 (diff)
parent6e40fcf45575801651ea9598f9bfc24fc342507a (diff)
Merge pull request #4098
6e40fcf Update contrib/debian for autotools, among a few other tweaks (Matt Corallo)
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