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