14
0
mirror of https://github.com/belluzj/fantasque-sans.git synced 2024-11-16 06:01:30 +01:00
fantasque-sans/Makefile
2013-11-30 21:29:09 +01:00

27 lines
622 B
Makefile

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