File: rules

package info (click to toggle)
libaqbanking 5.4.3beta-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 15,244 kB
  • ctags: 6,703
  • sloc: ansic: 119,813; sh: 11,218; xml: 9,839; makefile: 2,357; cpp: 2,233; perl: 278; pascal: 115
file content (69 lines) | stat: -rwxr-xr-x 2,476 bytes parent folder | download | duplicates (2)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/usr/bin/make -f

# let aqbanking benefit from symbol visibility feature of gcc
# this explicit setting is needed because the corresponding test in
# configure.ac checks for the basename of the called $CC binary.
CC=gcc
ifneq (,$(findstring nodocs,$(DEB_BUILD_OPTIONS)))
	DEB_BUILD_APIDOC=0
else
	DEB_BUILD_APIDOC=1
endif

%:
	dh $@ --with autoreconf

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

override_dh_auto_configure:
	dh_auto_configure --max-parallel=1 -- \
		--with-backends="aqnone aqhbci aqofxconnect aqebics" \
		$(shell dpkg-buildflags --export=configure)

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
	
	# Build the documentation (unless nodocs is set in DEB_BUILD_OPTIONS)
	if [ "$(DEB_BUILD_APIDOC)" = "1" ]; then \
		$(MAKE) srcdoc; \
		mv apidoc/html/aqbanking-* apidoc/html/aqbanking.html; \
		rm -vf apidoc/html/aqbanking.html/jquery.js; \
	else \
		mkdir -p apidoc/html/aqbanking.html; \
	fi

override_dh_auto_install:
	dh_auto_install
	# Remove .la files for shared plugin libraries
	find $(CURDIR)/debian/tmp/usr/lib/aqbanking/plugins -name \*.la -exec rm -v \{\} \;
	# Do not package apparently unused libaqbankingpp.so
	rm -vf $(CURDIR)/debian/tmp/usr/lib/libaqbankingpp.so
	# Rename README files to avoid file name clashes in package aqbanking-tools
	mv -v $(CURDIR)/debian/tmp/usr/share/doc/aqhbci/aqhbci-tool/README \
	      $(CURDIR)/debian/tmp/usr/share/doc/aqhbci/aqhbci-tool/README.aqhbci-tool.txt
	mv -v $(CURDIR)/debian/tmp/usr/share/doc/aqebics/aqebics-tool/README \
	      $(CURDIR)/debian/tmp/usr/share/doc/aqebics/aqebics-tool/README.aqebics-tool.txt

override_dh_strip:
	dh_strip --dbg-package=libaqbanking34-dbg

override_dh_makeshlibs:
	dh_makeshlibs -a -X/usr/lib/aqbanking/plugins/

override_dh_auto_clean:
	dh_auto_clean --max-parallel=1
	-rm -rf apidoc headers aqbanking.tag listdoc.h
	@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