File: rules

package info (click to toggle)
courier-unicode 2.1-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,320 kB
  • sloc: ansic: 39,403; sh: 4,166; cpp: 735; perl: 390; makefile: 335
file content (61 lines) | stat: -rwxr-xr-x 1,644 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
51
52
53
54
55
56
57
58
59
60
61
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#DH_VERBOSE = 1

# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
DPKG_EXPORT_BUILDFLAGS = 1

# see FEATURE AREAS in dpkg-buildflags(1)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
# package maintainers to append LDFLAGS
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

export DPKG_GENSYMBOLS_CHECK_LEVEL=4

include /usr/share/dpkg/default.mk

, := ,
SED_VERSION=sed -ne 's/^Version: \(.*\)/\1/p'

BUILT_USING_P=w3c-sgml-lib unicode-data
BUILT_USING=$(foreach PACKAGE,$(BUILT_USING_P),$(PACKAGE) (= $(shell dpkg-query -s $(PACKAGE) | $(SED_VERSION)))$(,))

export CXXFLAGS+=-fvisibility=hidden -fvisibility-inlines-hidden

# main packaging script based on dh7 syntax
%:
	dh $@ --with autoreconf,pkgkde_symbolshelper

override_dh_autoreconf:
	cp unicode_ultcasetab.c unicode_ultcasetab.c.orig
	dh_autoreconf

override_dh_auto_clean:
	dh_auto_clean
	rm -vrf \
		EastAsianWidth.txt \
		GraphemeBreakProperty.txt \
		LineBreak.txt \
		LineBreakTest.txt \
		UnicodeData.txt \
		WordBreakProperty.txt \
		WordBreakTest.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

override_dh_install:
	dh_install --fail-missing -X.la

override_dh_gencontrol:
	echo "Built-Using=$(BUILT_USING)" >> debian/libcourier-unicode4.substvars
	dh_gencontrol