File: rules

package info (click to toggle)
xmltooling 3.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 4,968 kB
  • sloc: cpp: 23,277; sh: 4,444; xml: 1,493; makefile: 351; ansic: 27
file content (40 lines) | stat: -rwxr-xr-x 1,158 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
#!/usr/bin/make -f

# Enable compiler hardening flags.
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# Ensure that we link against all needed libraries (cf. Policy 10.2)
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs

# The Shibboleth project decided to replace the C++ SP code with JAVA
# remoting, so substantial changes probably won't happen, see
# https://shibboleth.atlassian.net/wiki/spaces/DEV/pages/2981429255/Service+Provider+V4+Redesign
export DEB_CXXFLAGS_MAINT_APPEND = -Wno-deprecated-declarations

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
	    PTHREAD_CFLAGS=-pthread PTHREAD_LIBS=-lpthread \
	    --with-xmlsec

override_dh_auto_build-indep:
	$(MAKE) doxygen-doc
	$(MAKE) -C schemas

override_dh_auto_install-indep:
	$(MAKE) -C doc     DESTDIR="$(CURDIR)/debian/tmp" install
	$(MAKE) -C schemas DESTDIR="$(CURDIR)/debian/tmp" install

override_dh_auto_test-indep:

override_dh_auto_test-arch:
	dh_auto_test -- XMLTOOLINGTEST_SKIP_NETWORKED=1

override_dh_installdocs:
	dh_installdocs -A doc/README.txt doc/NOTICE.txt

# Work around https://shibboleth.atlassian.net/browse/CPPXT-146
override_dh_clean:
	dh_clean -X .bak