File: rules

package info (click to toggle)
ttf-adf 0.20090423-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, stretch, wheezy
  • size: 25,968 kB
  • sloc: makefile: 57
file content (75 lines) | stat: -rwxr-xr-x 3,793 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
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

build: build-stamp

build-stamp:
	dh_testdir
#	defoma-hints -c --no-question type1 `find . -name "*.pfb"` > debian/defoma-hints
#	sed -i s,/path/to,/usr/share/fonts/type1/adf,g debian/defoma-hints
#	sed -i "s,\./.*/,,g" debian/defoma-hints
#	defoma for otf/ttf broken
#	defoma-hints -c --no-question truetype `find . -name "*.otf"` >> debian/defoma-hints
#	sed -i s,/path/to,/usr/share/fonts/truetype/adf,g debian/defoma-hints
	touch $@

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs
#	dh_install $(shell find . -name "*.otf") usr/share/fonts/truetype/adf
#	dh_install $(shell find . -name "*.?f?") usr/share/fonts/type1/adf
	mkdir -p $(CURDIR)/debian/ttf-adf-universalis/usr/share/fonts/truetype/adf
	mkdir -p $(CURDIR)/debian/ttf-adf-baskervald/usr/share/fonts/truetype/adf
	mkdir -p $(CURDIR)/debian/ttf-adf-accanthis/usr/share/fonts/truetype/adf
	mkdir -p $(CURDIR)/debian/ttf-adf-switzera/usr/share/fonts/truetype/adf
	mkdir -p $(CURDIR)/debian/ttf-adf-berenis/usr/share/fonts/truetype/adf
	mkdir -p $(CURDIR)/debian/ttf-adf-gillius/usr/share/fonts/truetype/adf
	mkdir -p $(CURDIR)/debian/ttf-adf-ikarius/usr/share/fonts/truetype/adf
	mkdir -p $(CURDIR)/debian/ttf-adf-irianis/usr/share/fonts/truetype/adf
	mkdir -p $(CURDIR)/debian/ttf-adf-mekanus/usr/share/fonts/truetype/adf
	mkdir -p $(CURDIR)/debian/ttf-adf-oldania/usr/share/fonts/truetype/adf
	mkdir -p $(CURDIR)/debian/ttf-adf-romande/usr/share/fonts/truetype/adf
	mkdir -p $(CURDIR)/debian/ttf-adf-tribun/usr/share/fonts/truetype/adf
	mkdir -p $(CURDIR)/debian/ttf-adf-verana/usr/share/fonts/truetype/adf
	mkdir -p $(CURDIR)/debian/ttf-adf-libris/usr/share/fonts/truetype/adf
	install -m 0644 -t $(CURDIR)/debian/ttf-adf-universalis/usr/share/fonts/truetype/adf $(shell find . -name "*niversalis*.otf")
	install -m 0644 -t $(CURDIR)/debian/ttf-adf-baskervald/usr/share/fonts/truetype/adf $(shell find . -name "*askervald*.otf")
	install -m 0644 -t $(CURDIR)/debian/ttf-adf-accanthis/usr/share/fonts/truetype/adf $(shell find . -name "*ccanthis*.otf")
	install -m 0644 -t $(CURDIR)/debian/ttf-adf-switzera/usr/share/fonts/truetype/adf $(shell find . -name "*witzera*.otf")
	install -m 0644 -t $(CURDIR)/debian/ttf-adf-berenis/usr/share/fonts/truetype/adf $(shell find . -name "*erenis*.otf")
	install -m 0644 -t $(CURDIR)/debian/ttf-adf-gillius/usr/share/fonts/truetype/adf $(shell find . -name "*illius*.otf")
	install -m 0644 -t $(CURDIR)/debian/ttf-adf-ikarius/usr/share/fonts/truetype/adf $(shell find . -name "*karius*.otf")
	install -m 0644 -t $(CURDIR)/debian/ttf-adf-irianis/usr/share/fonts/truetype/adf $(shell find . -name "*rianis*.otf")
	install -m 0644 -t $(CURDIR)/debian/ttf-adf-mekanus/usr/share/fonts/truetype/adf $(shell find . -name "*ekanus*.otf")
	install -m 0644 -t $(CURDIR)/debian/ttf-adf-oldania/usr/share/fonts/truetype/adf $(shell find . -name "*ldania*.otf")
	install -m 0644 -t $(CURDIR)/debian/ttf-adf-romande/usr/share/fonts/truetype/adf $(shell find . -name "*omande*.otf")
	install -m 0644 -t $(CURDIR)/debian/ttf-adf-tribun/usr/share/fonts/truetype/adf $(shell find . -name "*ribun*.otf")
	install -m 0644 -t $(CURDIR)/debian/ttf-adf-verana/usr/share/fonts/truetype/adf $(shell find . -name "*erana*.otf")
	install -m 0644 -t $(CURDIR)/debian/ttf-adf-libris/usr/share/fonts/truetype/adf $(shell find . -name "*ibris*.otf")

binary-arch: build install

binary-indep: build install
	dh_testdir
	dh_testroot
	dh_installchangelogs
	dh_installdocs
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

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