chiark / gitweb /
slight template improvements
[xfonts-traditional.git] / Makefile
1 SHELL=/bin/bash
2
3 prefix?=/usr/local
4
5 package=xfonts-traditional
6 utility=update-$(package)
7
8 install=install -o 0 -g 0
9
10 default: all
11
12 all:
13         ./mkrules <specs
14         cp manual/*.rules rules/
15
16 install:
17         perl -pe 's#^(our \$$prefix=").*("\;\s*)$$#$$1$(prefix)$$2#' \
18                 <$(utility) >$(utility).sedded
19         $(install) -m755 -d $(DESTDIR)$(prefix)/{bin,share/{man/man8,$(package)/rules}}
20         $(install) -m755 $(utility).sedded $(DESTDIR)$(prefix)/bin/$(utility)
21         $(install) -m755 $(utility).8 $(DESTDIR)$(prefix)/share/man/man8/.
22         $(install) -m644 rules/* $(DESTDIR)$(prefix)/share/$(package)/rules/
23
24 clean:
25         rm -f rules/*.rules rules/foundries rules/foundries.new
26         rm -f good/*.bdf bad/*.bdf
27         rm -f *~ $(utility).sedded