File: rules

package info (click to toggle)
xmlsec1 1.2.37-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 15,964 kB
  • sloc: ansic: 78,108; xml: 14,888; sh: 6,142; makefile: 1,202; javascript: 403; perl: 199
file content (61 lines) | stat: -rwxr-xr-x 1,507 bytes parent folder | download
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
#!/usr/bin/make -f

export OFFLINE=1

%:
	dh $@

override_dh_auto_clean:
	dh_auto_clean
	if [ -d docs.bak ]; then rm -rf docs; mv docs.bak docs; fi
	rm -f man/xmlsec1-config.1 man/xmlsec1.1
	rm -f config.log config.cache config.status

override_dh_auto_configure:

override_dh_auto_build-arch:
	dh_auto_configure -- \
		--enable-manpages-build \
		--with-html-dir=\$${prefix}/share/doc/libxmlsec1-dev/html \
		--disable-crypto-dl \
		--disable-apps-crypto-dl \
		--enable-soap \
		--enable-openssl3-engines
	dh_auto_build --no-parallel

override_dh_auto_build-indep:
	dh_auto_configure -- \
		--enable-manpages-build \
		--enable-docs --enable-docs-build \
		--with-html-dir=\$${prefix}/share/doc/libxmlsec1-dev/html \
		--disable-crypto-dl \
		--disable-apps-crypto-dl \
		--enable-soap \
		--enable-openssl3-engines
	dh_auto_build --no-parallel

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.md debian/README.Debian

override_dh_compress:
	dh_compress -Xexamples/

override_dh_makeshlibs:
	dh_makeshlibs -V