File: rules

package info (click to toggle)
leafpad 0.8.18.1-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,732 kB
  • ctags: 435
  • sloc: ansic: 5,022; sh: 3,962; makefile: 93
file content (43 lines) | stat: -rwxr-xr-x 1,080 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
39
40
41
42
43
#!/usr/bin/make -f

PACKAGE = leafpad
DESKTOP_KEYWORDS = Keywords=editor

export DEB_BUILD_MAINT_OPTIONS	= hardening=+all
export DEB_CFLAGS_MAINT_APPEND	= -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

man:
	$(MAKE) -C debian -f pod2man.mk PACKAGE=$(PACKAGE) makeman

override_dh_auto_configure:
	cp config.sub config.sub.bak
	cp config.guess config.guess.bak
	cp -vf /usr/share/misc/config.sub /usr/share/misc/config.guess .
	dh_auto_configure
	# Restore original files. The will keep version control directory clean
	mv config.sub.bak config.sub
	mv config.guess.bak config.guess

override_dh_auto_test:
	# The tests would consider Quilt .pc/ directory as
	# a part of translation POTFILES. Dynamically exclude all.

	( find .pc/ -type f > po/POTFILES.skip )
	dh_auto_test
	rm -f po/POTFILES.skip

override_dh_installman: man
	dh_installman
	# Remove encofing, UTF is the default.
	sed --in-place \
	    -e '/Encoding/d' \
	    -e '3s/^/$(DESKTOP_KEYWORDS)\n/' \
	    debian/$(PACKAGE)/usr/share/applications/*.desktop

%:
	dh $@

.PHONY: man

# End of file