chiark / gitweb /
debian/copyright: Explain the origin and copyright status of 6x13O.
[xfonts-traditional] / Makefile
CommitLineData
15fc3ba1
IJ
1SHELL=/bin/bash
2
1b17f3ec
IJ
3prefix?=/usr/local
4
5package=xfonts-traditional
6utility=update-$(package)
7
3f38bf97 8install=install -o 0 -g 0
1b17f3ec
IJ
9
10default: all
11
e7bc2e40
MW
12OWNFONT = 6x13O
13SRCBDF = $(patsubst %, bdfsrc/%.bdf, $(OWNFONT))
14GENPCF = $(patsubst %, good/%.pcf.gz, $(OWNFONT))
15$(GENPCF): good/%.pcf.gz: bdfsrc/%.bdf
16 bdftopcf <$< | gzip -9 >$@
17
18all: $(GENPCF)
3f83ea0c 19 mkdir -p rules/
1b17f3ec 20 ./mkrules <specs
460cb922 21 cp manual/*.rules rules/
1b17f3ec
IJ
22
23install:
24 perl -pe 's#^(our \$$prefix=").*("\;\s*)$$#$$1$(prefix)$$2#' \
25 <$(utility) >$(utility).sedded
a0ceefde 26 $(install) -m755 -d $(DESTDIR)$(prefix)/{bin,share/{man/man8,$(package)/rules}}
3f38bf97 27 $(install) -m755 $(utility).sedded $(DESTDIR)$(prefix)/bin/$(utility)
fb8fab66 28 $(install) -m755 $(utility).8 $(DESTDIR)$(prefix)/share/man/man8/.
3f38bf97 29 $(install) -m644 rules/* $(DESTDIR)$(prefix)/share/$(package)/rules/
1b17f3ec 30
15fc3ba1 31clean:
b75800b7 32 rm -f rules/*.rules rules/foundries rules/foundries.new
15fc3ba1 33 rm -f good/*.bdf bad/*.bdf
e7bc2e40 34 rm -f $(GENPCF)
b75800b7 35 rm -f *~ $(utility).sedded