File: rules

package info (click to toggle)
gnome-menus 3.38.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,004 kB
  • sloc: ansic: 8,237; sh: 5,468; makefile: 162; python: 55; javascript: 26; sed: 16
file content (31 lines) | stat: -rwxr-xr-x 897 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
#!/usr/bin/make -f

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

%:
	dh $@

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

execute_after_dh_auto_install:
	rm -fv debian/tmp/usr/lib/*/*.la

execute_after_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

# We only use dh_gnome to automatically run dh_translations in Ubuntu
override_dh_gnome: