fantasque-sans/Makefile

27 lines
622 B
Makefile
Raw Normal View History

SOURCES=$(wildcard Sources/*.sfd)
BASENAMES=$(patsubst Sources/%.sfd,%,$(SOURCES))
2013-11-27 21:47:39 +01:00
TTF_FILES=$(patsubst %,%.ttf,$(BASENAMES))
# TTF_HINTED_FILES=$(patsubst %,%-autohint.ttf,$(BASENAMES))
2013-11-27 21:47:39 +01:00
OTF_FILES=$(patsubst %,OTF/%.otf,$(BASENAMES))
all: zip
OTF/%.otf %.ttf: Sources/%.sfd
mkdir -p OTF TeX
2013-11-27 21:47:39 +01:00
./validate-generate.sh $*
# TODO determine perfect parameters
ttfautohint $*.ttf $*.hinted.ttf
mv $*.hinted.ttf $*.ttf
2013-11-27 21:47:39 +01:00
.PHONY: install clean zip
install: $(TTF_FILES)
cp $^ ~/.fonts/
fc-cache -f
zip: $(TTF_FILES) $(OTF_FILES) $(SOURCES)
2013-11-27 21:47:39 +01:00
zip CosmicSansNeueMono.zip OFL.txt README.md $^
clean:
rm -f *.ttf OTF/* TeX/*
2013-11-27 21:47:39 +01:00