File: rules

package info (click to toggle)
gnome-menus 3.13.3-9
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,956 kB
  • ctags: 1,236
  • sloc: sh: 11,345; ansic: 8,722; makefile: 165; python: 55
file content (32 lines) | stat: -rwxr-xr-x 962 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
#!/usr/bin/make -f

DEB_BUILDDIR = debian/build

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/gnome.mk
include /usr/share/cdbs/1/rules/utils.mk
include /usr/share/cdbs/1/rules/autoreconf.mk
include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk
-include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk

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

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

%.directory: %.directory.in
	intltool-merge -d debian/po-up $< $@

build/gnome-menus:: $(OUTFILES)

binary-install/gnome-menus::
	dh_python3 -pgnome-menus

clean::
	-rm -f $(OUTFILES)

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