chiark / gitweb /
Fix FontForge Makefile rules to work properly.
authorBen Harris <bjh21@bjh21.me.uk>
Sun, 6 Aug 2017 22:12:09 +0000 (23:12 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Sun, 6 Aug 2017 22:12:09 +0000 (23:12 +0100)
When generating secondary targets, they still need to pass the name of
the primary target to FontForge.

Makefile

index 5e3d832a2a1caa5c5aa183486193387e01a78864..ffb5e8a27851ebccccefd0f34251f1882a1fc2ef 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -38,10 +38,11 @@ bedstead-ultracondensed.sfd: bedstead
 
 %.otf %-10.bdf %-20.bdf: %.sfd
        fontforge -lang=ff \
-           -c 'Open($$1); BitmapsAvail([10, 20]); Generate($$2, "bdf")' $< $@
+           -c 'Open($$1); BitmapsAvail([10, 20]); Generate($$2, "bdf")' \
+           $< $*.otf
 
 %.pfa %.afm: %.sfd
-       fontforge -lang=ff -c 'Open($$1); Generate($$2)' $< $@
+       fontforge -lang=ff -c 'Open($$1); Generate($$2)' $< $*.pfa
 
 %.png: %.ps $(OTFFILES)
        gs -P -q -dSAFER -sDEVICE=pnggray -dTextAlphaBits=4 -o $@ $<