You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
#!/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)
% :
dh --with bash-completion --with systemd $@
override_dh_auto_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
QT = $( shell dpkg-vendor --derives-from Ubuntu && echo qt4 || echo qt5)
# qt4 is very broken on arm
i f e q ( $( findstring arm ,$ ( shell uname -m ) ) , a r m )
QT = qt5
e n d i f
i f e q ( $( findstring aarch 64,$ ( shell uname -m ) ) , a a r c h 6 4 )
QT = qt5
e n d i f
# Yea, autogen should be run on the source archive, but I like doing git archive
override_dh_auto_configure :
./autogen.sh
./configure --with-gui= $( QT)
override_dh_auto_test :
i f e q ( $( QT ) , q t 4 )
x v f b - r u n - n 9 9 - l m a k e c h e c k
e l s e
m a k e c h e c k
e n d i f
# No SysV or Upstart init scripts included
override_dh_installinit :
dh_installinit \
--noscripts
# Don’ t enable service by default
override_dh_systemd_enable :
dh_systemd_enable \
--no-enable
# Restart after upgrade
override_dh_systemd_start :
dh_systemd_start \
--restart-after-upgrade