File: rules

package info (click to toggle)
libaqbanking 6.8.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 17,824 kB
  • sloc: ansic: 151,683; xml: 19,426; sh: 4,512; makefile: 4,010; cpp: 329; perl: 267
file content (47 lines) | stat: -rwxr-xr-x 1,546 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/make -f

%:
	dh $@

# Let dpkg-gensymbols fail if symbols file updates are needed
DPKG_GENSYMBOLS_CHECK_LEVEL ?= 4
export DPKG_GENSYMBOLS_CHECK_LEVEL

# Support reproducible builds by force generated timestamps to in UTC.
# This is used by the command 'date' called within ./configure
TZ=UTC
export TZ

include /usr/share/dpkg/architecture.mk

override_dh_auto_configure:
	dh_auto_configure --max-parallel=1 -- \
		--disable-silent-rules \
		--with-build-datetime="$(shell dpkg-parsechangelog -c1 -S date)" \
		--with-backends="aqnone aqhbci aqofxconnect aqebics aqpaypal"

override_dh_auto_test:
	# Skip dh_auto_test (does not work with AqBanking 3.7.2)

override_dh_auto_build:
	dh_auto_build --max-parallel=1
	$(MAKE) -C debian/doc LANG=C

override_dh_auto_install:
	dh_auto_install
	# Remove .la files for shared plugin libraries
	find $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/aqbanking/plugins -name \*.la -exec rm -v \{\} \;

override_dh_makeshlibs:
	dh_makeshlibs -a -X/usr/lib/$(DEB_HOST_MULTIARCH)/aqbanking/plugins/

override_dh_auto_clean:
	dh_auto_clean --max-parallel=1
	@if [ -e $(CURDIR)/src/plugins/backends/aqyellownet ]; then \
	  echo "ERROR: The directory src/plugins/backends/aqyellownet exists. This usually"; \
	  echo "indicates that you're using a pristine upstream tarball which distributes"; \
	  echo "non-free material in this directory. This is unacceptable for Debian."; \
	  echo "Please see http://bugs.debian.org/469131 for further details."; \
	  exit 1; \
	fi
	$(MAKE) -C debian/doc clean