File: rules

package info (click to toggle)
gnome-system-log 3.9.90-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 11,284 kB
  • sloc: sh: 11,870; ansic: 4,695; makefile: 188; xml: 8
file content (36 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
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs -Wl,--as-needed

INFILES := $(wildcard debian/*.policy.in)
OUTFILES := $(INFILES:.policy.in=.policy)

%.policy: %.policy.in
	intltool-merge -x debian/po-up $< $@

%:
	dh $@ --with gnome

override_dh_auto_clean:
	dh_auto_clean
	-rm -f $(OUTFILES)

override_dh_autoreconf:
	dh_autoreconf --as-needed
	intltoolize -c -f

override_dh_auto_configure:
	dh_auto_configure -- --enable-zlib

override_dh_auto_build: $(OUTFILES)
	dh_auto_build

override_dh_auto_test:
	-dh_auto_test

update-po::
	ls $(INFILES) | sed 's#^#../#' >debian/po-up/POTFILES.in
	cd debian/po-up && intltool-update -g debian --pot && \
		for i in *.po; do intltool-update -g debian --dist $${i%.po}; done
	rm -f debian/po-up/POTFILES.in