File: rules

package info (click to toggle)
gnome-menus 3.36.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,036 kB
  • sloc: ansic: 8,237; sh: 4,721; makefile: 162; python: 55; sed: 16
file content (29 lines) | stat: -rwxr-xr-x 880 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
28
29
#!/usr/bin/make -f

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

%:
	dh $@ --with gir,gnome,python3

INFILES := $(wildcard debian/desktop-files/*.directory.desktop.in)
OUTFILES := $(INFILES:.directory.desktop.in=.directory)

%.directory: %.directory.desktop.in
	msgfmt --desktop --template $< -o $@ -d debian/po-up

override_dh_auto_build: $(OUTFILES)
	dh_auto_build

override_dh_strip:
	dh_strip --dbgsym-migration='libgnome-menu-3-0-dbg (<< 3.13.3-8~)'

override_dh_auto_clean:
	dh_auto_clean
	-rm -f $(OUTFILES)

update-po:
	ls $(INFILES) | sed 's#^#../#' >debian/po-up/POTFILES.in
	xgettext -d debian -o debian/po-up/debian.pot --from-code=UTF-8 --add-comments $(INFILES) && \
		cd debian/po-up && for i in *.po; do msgmerge --update --backup=off $${i} debian.pot; done
	rm -f debian/po-up/POTFILES.in