File: rules

package info (click to toggle)
autogen 1:5.18.12-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 7,944 kB
  • sloc: ansic: 24,766; sh: 21,585; perl: 800; makefile: 719; lisp: 128
file content (57 lines) | stat: -rwxr-xr-x 1,644 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
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk
export DEB_BUILD_MAINT_OPTIONS := hardening=+all
export DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed
export DEB_CFLAGS_MAINT_APPEND := -Wall -Wno-format-contains-nul
export LC_COLLATE=C
undefine LC_ALL

include /usr/share/dpkg/pkg-info.mk
# Used by 10_libopts_tarball_perms.diff
export MAN_PAGE_DATE = $(shell env LC_ALL=C date -u \
	-d '@$(SOURCE_DATE_EPOCH)' +%Y-%m-%d)

ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
export libopts_cv_with_libregex=yes
endif

override_dh_auto_configure:
	dh_auto_configure --verbose -- \
		--disable-silent-rules \
		--enable-timeout=78 \
		--with-libxml2-libs="$(shell $(DEB_HOST_GNU_TYPE)-pkg-config --libs libxml-2.0)" \
		--with-libxml2-cflags="$(shell $(DEB_HOST_GNU_TYPE)-pkg-config --cflags libxml-2.0)"

override_dh_auto_build:
	dh_auto_build --verbose
	$(MAKE) -C doc info
ifneq (,$(filter autogen-doc, $(shell dh_listpackages)))
	$(MAKE) -C doc pdf
	$(MAKE) -C doc html
endif


override_dh_auto_clean:
	rm -Rf doc/html
	rm -vf agen5/test/defs autoopts/test/*.o autoopts/test/*.c \
		autoopts/test/*.h autoopts/test/getopt.def getdefs/opts.c \
		snprintfv/snv.c snprintfv/snprintfv.h xml2ag/fork.c \
		xml2ag/xmlopts.c xml2ag/xmlopts.h autoopts/autoopts.pc \
		autoopts/pathfind.3 autoopts/*.tar.gz
	dh_auto_clean --verbose

override_dh_auto_install:
	dh_auto_install  --verbose
	rm -vf $(CURDIR)/debian/tmp/usr/share/info/dir \
		$(CURDIR)/debian/tmp/usr/lib/*/libopts.la \
		$(CURDIR)/debian/tmp/usr/share/autogen/tpl-config.tlib

override_dh_missing:
	dh_missing --fail-missing

override_dh_makeshlibs:
	dh_makeshlibs -V

%:
	dh $@