| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
%: |
| 4 |
dh $@ |
| 5 |
|
| 6 |
# Let dpkg-gensymbols fail if symbols file updates are needed |
| 7 |
DPKG_GENSYMBOLS_CHECK_LEVEL ?= 4 |
| 8 |
export DPKG_GENSYMBOLS_CHECK_LEVEL |
| 9 |
|
| 10 |
# Support reproducible builds by force generated timestamps to in UTC. |
| 11 |
# This is used by the command 'date' called within ./configure |
| 12 |
TZ=UTC |
| 13 |
export TZ |
| 14 |
|
| 15 |
include /usr/share/dpkg/architecture.mk |
| 16 |
|
| 17 |
override_dh_auto_configure: |
| 18 |
dh_auto_configure --max-parallel=1 -- \ |
| 19 |
--disable-silent-rules \ |
| 20 |
--with-build-datetime="$(shell dpkg-parsechangelog -c1 -S date)" \ |
| 21 |
--with-backends="aqnone aqhbci aqofxconnect aqebics aqpaypal" |
| 22 |
|
| 23 |
override_dh_auto_test: |
| 24 |
# Skip dh_auto_test (does not work with AqBanking 3.7.2) |
| 25 |
|
| 26 |
override_dh_auto_build: |
| 27 |
dh_auto_build --max-parallel=1 |
| 28 |
$(MAKE) -C debian/doc LANG=C |
| 29 |
|
| 30 |
override_dh_auto_install: |
| 31 |
dh_auto_install |
| 32 |
# Remove .la files for shared plugin libraries |
| 33 |
find $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/aqbanking/plugins -name \*.la -exec rm -v \{\} \; |
| 34 |
|
| 35 |
override_dh_makeshlibs: |
| 36 |
dh_makeshlibs -a -X/usr/lib/$(DEB_HOST_MULTIARCH)/aqbanking/plugins/ |
| 37 |
|
| 38 |
override_dh_auto_clean: |
| 39 |
dh_auto_clean --max-parallel=1 |
| 40 |
@if [ -e $(CURDIR)/src/plugins/backends/aqyellownet ]; then \ |
| 41 |
echo "ERROR: The directory src/plugins/backends/aqyellownet exists. This usually"; \ |
| 42 |
echo "indicates that you're using a pristine upstream tarball which distributes"; \ |
| 43 |
echo "non-free material in this directory. This is unacceptable for Debian."; \ |
| 44 |
echo "Please see http://bugs.debian.org/469131 for further details."; \ |
| 45 |
exit 1; \ |
| 46 |
fi |
| 47 |
$(MAKE) -C debian/doc clean |