chiark / gitweb /
bdfnorm: Install executable (!)
[xfonts-traditional.git] / Makefile
index 75c9eb8..22c747d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -9,8 +9,16 @@ install=install -o 0 -g 0
 
 default: all
 
-all:
+OWNFONT = 6x13O
+SRCBDF = $(patsubst %, bdfsrc/%.bdf, $(OWNFONT))
+GENPCF = $(patsubst %, good/%.pcf.gz, $(OWNFONT))
+$(GENPCF): good/%.pcf.gz: bdfsrc/%.bdf
+       bdftopcf <$< | gzip -9 >$@
+
+all: $(GENPCF)
+       mkdir -p rules/
        ./mkrules <specs
+       cp manual/*.rules rules/
 
 install:
        perl -pe 's#^(our \$$prefix=").*("\;\s*)$$#$$1$(prefix)$$2#' \
@@ -19,7 +27,10 @@ install:
        $(install) -m755 $(utility).sedded $(DESTDIR)$(prefix)/bin/$(utility)
        $(install) -m755 $(utility).8 $(DESTDIR)$(prefix)/share/man/man8/.
        $(install) -m644 rules/* $(DESTDIR)$(prefix)/share/$(package)/rules/
+       $(install) -m755 bdfnorm $(DESTDIR)$(prefix)/share/$(package)/
 
 clean:
-       rm -f rules/*.rules
+       rm -f rules/*.rules rules/foundries rules/foundries.new
        rm -f good/*.bdf bad/*.bdf
+       rm -f $(GENPCF)
+       rm -f *~ $(utility).sedded