File: rules

package info (click to toggle)
libxml-libxml-perl 2.0134%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,556 kB
  • sloc: perl: 6,310; ansic: 3,851; xml: 182; sh: 21; makefile: 15
file content (26 lines) | stat: -rwxr-xr-x 824 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
#!/usr/bin/make -f

# skip tests that need files we remove in the +dfsg version
SKIP_TESTS = $(shell cat debian/tests/pkg-perl/smoke-skip)
TEST_FILES = $(filter-out $(SKIP_TESTS), $(wildcard t/*.t))

XML_LIBS := $(shell pkg-config --libs   libxml-2.0)
XML_INC  := $(shell pkg-config --cflags libxml-2.0)

export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow

%:
	dh $@

# we want to use the system version of included modules, so
# we move the inc away and move it back afterwards
override_dh_auto_clean:
	dh_auto_clean
	[ ! -d $(CURDIR)/inc.save ] || mv $(CURDIR)/inc.save $(CURDIR)/inc

override_dh_auto_configure:
	[ ! -d $(CURDIR)/inc ] || mv $(CURDIR)/inc $(CURDIR)/inc.save
	dh_auto_configure -- SKIP_SAX_INSTALL=1 LIBS="$(XML_LIBS)" INC="$(XML_INC)"

override_dh_auto_test:
	dh_auto_test -- TEST_FILES="$(TEST_FILES)"