File: rules

package info (click to toggle)
gmpc 11.8.16-19
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 20,540 kB
  • sloc: ansic: 51,377; sh: 10,438; makefile: 1,741; xml: 9
file content (38 lines) | stat: -rwxr-xr-x 905 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
#!/usr/bin/make -f
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

binaries := $(shell dh_listpackages)

ifneq ($(filter gmpc-data,$(binaries)),)
configure_flags += --with-help
else
configure_flags += --without-help
endif

%:
	dh $@

override_dh_auto_configure:
	find . -name '*.vala' | grep -v '^./.pc' | sed -s 's/vala$$/c/' | xargs rm
	dh_auto_configure \
		-- \
		--disable-unique \
		$(configure_flags) \
		${NULL}
	[ ! -d .pc ] || find .pc -type f -name '*.c' -exec echo '{}' >> po/POTFILES.skip \;

override_dh_clean:
	dh_clean
	rm -f intltool-extract intltool-merge intltool-update config.log

override_dh_auto_clean:
	grep -v '^.pc' po/POTFILES.skip > po/POTFILES.skip.tmp
	mv po/POTFILES.skip.tmp po/POTFILES.skip
	dh_auto_clean

override_dh_missing:
	dh_missing --fail-missing

override_dh_installchangelogs:
	dh_installchangelogs -XChangeLog