File: rules

package info (click to toggle)
libmaxminddb 1.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,420 kB
  • sloc: ansic: 6,224; perl: 941; makefile: 152; sh: 150
file content (29 lines) | stat: -rwxr-xr-x 702 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
	CONFIGURE_OPTS += --enable-debug
endif

ifneq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
	CONFIGURE_OPTS += --disable-tests
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		--includedir="\$${prefix}/include/$(DEB_HOST_MULTIARCH)" \
		$(CONFIGURE_OPTS)

override_dh_auto_build:
ifeq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
	# build manpages; these are included in tarballs but we regenerate them
	dev-bin/make-man-pages.pl
endif
	dh_auto_build

override_dh_installchangelogs:
	dh_installchangelogs Changes.md