diff options
author | Matt Corallo <matt@bluematt.me> | 2011-10-25 16:48:36 -0400 |
---|---|---|
committer | Matt Corallo <matt@bluematt.me> | 2011-11-08 11:57:05 -0500 |
commit | 38f33ce4a318c8dbff648154ea4978d3ccaf8495 (patch) | |
tree | 2e1d1602ec3520ec1437f0a27c7d60f6c656ccfc /contrib/debian/rules | |
parent | 2b814d6eb08458c54273af8263d1f7a11f64edf5 (diff) |
Add debian build folder
Diffstat (limited to 'contrib/debian/rules')
-rwxr-xr-x | contrib/debian/rules | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/contrib/debian/rules b/contrib/debian/rules new file mode 100755 index 0000000000..a1d65652e3 --- /dev/null +++ b/contrib/debian/rules @@ -0,0 +1,33 @@ +#!/usr/bin/make -f +# -*- mode: makefile; coding: utf-8 -*- + +#DEB_MAKE_CHECK_TARGET = test_bitcoin +#build/bitcoind:: +# $(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),,src/test_bitcoin) + +DEB_INSTALL_EXAMPLES_bitcoind += debian/examples/* +DEB_INSTALL_MANPAGES_bitcoind += debian/manpages/* + +%: + dh $@ + +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 + +override_dh_auto_configure: + qmake bitcoin-qt.pro + +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 |