Provide 6x13O as a BDF source and generate a PCF from it at build time.
[xfonts-traditional] / Makefile
index 1056107..a041272 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,13 @@ 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/
@@ -25,4 +31,5 @@ install:
 clean:
        rm -f rules/*.rules rules/foundries rules/foundries.new
        rm -f good/*.bdf bad/*.bdf
+       rm -f $(GENPCF)
        rm -f *~ $(utility).sedded