File: rules

package info (click to toggle)
xmlsec1 1.2.27-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 16,072 kB
  • sloc: ansic: 76,139; xml: 14,614; sh: 5,993; makefile: 1,179; perl: 183
file content (44 lines) | stat: -rwxr-xr-x 1,070 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
#!/usr/bin/make -f

export OFFLINE=1

%:
	dh $@

override_dh_clean:
	dh_clean config.log config.cache config.status
	if [ -d docs.bak ]; then rm -rf docs; mv docs.bak docs; fi

override_dh_auto_configure:
	if [ ! -d docs.bak ]; then cp -ra docs docs.bak; fi
	dh_auto_configure -- \
		--with-html-dir=\$${prefix}/share/doc/libxmlsec1-dev/html \
		--disable-crypto-dl \
		--disable-apps-crypto-dl \
		--enable-soap

override_dh_auto_test:
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
	$(MAKE) check | tee /tmp/tests.log
	grep -q Fail /tmp/tests.log && (echo "Failures executing unit tests, exiting build"; exit 1) \
		|| echo "Unit tests completed successfully"
endif

	touch build-stamp

override_dh_install:
	find debian/tmp/usr/lib -name "*.la" -exec \
		sed -i -e "s,^dependency_libs=.*,dependency_libs=''," {} +
	dh_install

override_dh_installexamples:
	dh_installexamples examples/*

override_dh_installdocs:
	dh_installdocs -X.sgml --all README debian/README.Debian

override_dh_compress:
	dh_compress -Xexamples/

override_dh_makeshlibs:
	dh_makeshlibs -V