File: rules

package info (click to toggle)
hbf-cns40-b5 1.0-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 264 kB
  • ctags: 18
  • sloc: makefile: 62; sh: 28
file content (106 lines) | stat: -rwxr-xr-x 2,615 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#!/usr/bin/make -f
#
# debian/rules file for hbf-cns40-b5 for Debian.
# GNU GPL v2, Copyright (C) 1999-2000, Anthony Fok <foka@debian.org>

# Font-specific configuration
#  Nominal names
fonttype = hbf
fontlang = big5
fontset = cns40
fontplane = b5
fontname = $(fontset)-$(fontplane)

#  What CJK for LaTeX know these fonts as
supplier = big5
typeface = csso12
subfonts = 01 02 03 04 05 06 07 08 09 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

package = $(fonttype)-$(fontname)
d = debian/tmp
texmf = usr/share/texmf

src_fontpath = fonts/$(fonttype)/$(fontlang)/$(fontset)
src_tfmpath = fonts/tfm/$(supplier)/$(typeface)
src_docpath = doc/fonts/$(fonttype)/$(supplier)/$(fontname)
dest_fontpath = usr/share/fonts/$(fonttype)
dest_texfontpath = $(texmf)/fonts/$(fonttype)/$(supplier)
dest_tfmpath = $(texmf)/fonts/tfm/$(supplier)/$(typeface)
dest_docpath = usr/doc/texmf/fonts/$(fonttype)/$(supplier)

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

build: build-stamp
build-stamp:
	dh_testdir

	# Add here commands to compile the package.
	cp -av $(src_tfmpath)/$(typeface)01.tfm $(typeface).tfm

	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp

	# Add here commands to clean up after the build process.
	rm -f $(typeface).tfm

	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs $(dest_fontpath) $(dest_tfmpath) $(dest_docpath) \
		$(dest_texfontpath)

	# Add here commands to install the package into debian/tmp.
	cp -av $(src_fontpath) $(d)/$(dest_fontpath)/

	( cd $(d)/$(dest_fontpath)/$(fontset) && \
		mv cns40-b5.hbf cns40b5.hbf )

	ln -s ../../../../fonts/$(fonttype)/$(fontset) \
		$(d)/$(dest_texfontpath)/

	for i in $(subfonts); do \
		ln $(typeface).tfm $(d)/$(dest_tfmpath)/$(typeface)$$i.tfm; \
	done

# Build architecture-independent files here.
binary-indep: build install
#	dh_testversion
	dh_testdir
	dh_testroot
	dh_installdocs $(src_docpath)/*
	ln -s ../../../../$(package) \
		$(d)/$(dest_docpath)/$(fontname)
#	dh_installexamples
#	dh_installmenu
#	dh_installemacsen
#	dh_installinit
#	dh_installcron
#	dh_installmanpages
#	dh_undocumented
	dh_installchangelogs
	dh_link
	dh_compress
	dh_fixperms
	# You may want to make some executables suid here.
#	dh_suidregister
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

# Build architecture-dependent files here.
binary-arch: build install
# We have nothing to do by default.

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install