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