File: rules

package info (click to toggle)
grilo 0.3.13-1%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,184 kB
  • sloc: ansic: 18,644; xml: 2,260; python: 701; makefile: 18
file content (27 lines) | stat: -rwxr-xr-x 687 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS) \
	-Wno-deprecated-declarations

ifneq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
	EXTRA_CONFIGURE_ARGUMENTS += -Denable-gtk-doc=false
else
	EXTRA_CONFIGURE_ARGUMENTS += -Denable-gtk-doc=true
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- -Denable-vala=true -Denable-introspection=true \
		-Denable-grl-net=true $(EXTRA_CONFIGURE_ARGUMENTS)

# Create a dummy doc directory in case the "nodoc" build option is set
override_dh_install:
	mkdir -p $(CURDIR)/debian/tmp/usr/share/gtk-doc/html
	dh_install

override_dh_missing:
	dh_missing --fail-missing