chiark / gitweb /
build system
[xfonts-traditional] / Makefile
CommitLineData
15fc3ba1
IJ
1SHELL=/bin/bash
2
1b17f3ec
IJ
3prefix?=/usr/local
4
5package=xfonts-traditional
6utility=update-$(package)
7
8install=install -m 755 -o 0 -g 0
9
10default: all
11
12all:
13 ./mkrules <specs
14
15install:
16 perl -pe 's#^(our \$$prefix=").*("\;\s*)$$#$$1$(prefix)$$2#' \
17 <$(utility) >$(utility).sedded
18 $(install) -d $(DESTDIR)$(prefix)/{bin,share/$(package)/rules}
19 $(install) $(utility).sedded $(DESTDIR)$(prefix)/bin/$(utility)
20
15fc3ba1
IJ
21clean:
22 rm -f rules/*.rules
23 rm -f good/*.bdf bad/*.bdf