chiark / gitweb /
mkrules: Handle multiple files with the same metrics.
[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
12all:
3f83ea0c 13 mkdir -p rules/
1b17f3ec 14 ./mkrules <specs
460cb922 15 cp manual/*.rules rules/
1b17f3ec
IJ
16
17install:
18 perl -pe 's#^(our \$$prefix=").*("\;\s*)$$#$$1$(prefix)$$2#' \
19 <$(utility) >$(utility).sedded
a0ceefde 20 $(install) -m755 -d $(DESTDIR)$(prefix)/{bin,share/{man/man8,$(package)/rules}}
3f38bf97 21 $(install) -m755 $(utility).sedded $(DESTDIR)$(prefix)/bin/$(utility)
fb8fab66 22 $(install) -m755 $(utility).8 $(DESTDIR)$(prefix)/share/man/man8/.
3f38bf97 23 $(install) -m644 rules/* $(DESTDIR)$(prefix)/share/$(package)/rules/
1b17f3ec 24
15fc3ba1 25clean:
b75800b7 26 rm -f rules/*.rules rules/foundries rules/foundries.new
15fc3ba1 27 rm -f good/*.bdf bad/*.bdf
b75800b7 28 rm -f *~ $(utility).sedded