File: rules

package info (click to toggle)
courier-unicode 2.4.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,572 kB
  • sloc: ansic: 83,912; sh: 4,230; cpp: 2,596; perl: 1,023; makefile: 663
file content (50 lines) | stat: -rwxr-xr-x 1,230 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
44
45
46
47
48
49
50
#!/usr/bin/make -f

# Uncomment below to enable verbose logging.
#DH_VERBOSE = 1

# Check for changes in the symbols.
export DPKG_GENSYMBOLS_CHECK_LEVEL=4

# Enable all build hardening flags.
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

execute_before_dh_install:
	# Remove any undefined "an-trap" macros from the man pages.  <https://github.com/svarshavchik/courier/issues/58>
	sed -i '/an-trap/d' debian/tmp/usr/share/man/man3/*

# TODO:  Se if this is still needed.
override_dh_autoreconf:
	cp unicode_ultcasetab.c unicode_ultcasetab.c.orig
	dh_autoreconf

# TODO:  See if this can be handled by debian/clean.
override_dh_auto_clean:
	dh_auto_clean
	rm -vrf \
		GraphemeBreakProperty.txt \
		LineBreakTest.txt \
		WordBreakProperty.txt \
		WordBreakTest.txt \
		emoji-data.txt \
		DerivedBidiClass.txt \
		BidiBrackets.txt \
		BidiCharacterTest.txt \
		BidiMirroring.txt \
		BidiTest.txt \
		DerivedCoreProperties.txt \
		DerivedNormalizationProps.txt \
		EastAsianWidth.txt \
		LineBreak.txt \
		Scripts.txt \
		UnicodeData.txt \
		a.out \
		xhtml-lat1.ent \
		xhtml-special.ent \
		xhtml-symbol.ent
	[ ! -f unicode_ultcasetab.c.orig ] \
		|| mv -v unicode_ultcasetab.c.orig unicode_ultcasetab.c
	dh_auto_clean