chiark / gitweb /
process pcfs
[xfonts-traditional.git] / Makefile
index f447dfc..caf5fd0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,24 @@
 SHELL=/bin/bash
 
+prefix?=/usr/local
+
+package=xfonts-traditional
+utility=update-$(package)
+
+install=install -o 0 -g 0
+
+default: all
+
+all:
+       ./mkrules <specs
+
+install:
+       perl -pe 's#^(our \$$prefix=").*("\;\s*)$$#$$1$(prefix)$$2#' \
+               <$(utility) >$(utility).sedded
+       $(install) -m755 -d $(DESTDIR)$(prefix)/{bin,share/$(package)/rules}
+       $(install) -m755 $(utility).sedded $(DESTDIR)$(prefix)/bin/$(utility)
+       $(install) -m644 rules/* $(DESTDIR)$(prefix)/share/$(package)/rules/
+
 clean:
        rm -f rules/*.rules
        rm -f good/*.bdf bad/*.bdf