2013-11-28 22:56:43 +01:00
|
|
|
SOURCES=$(wildcard Sources/*.sfd)
|
|
|
|
BASENAMES=$(patsubst Sources/%.sfd,%,$(SOURCES))
|
2013-11-27 21:47:39 +01:00
|
|
|
TTF_FILES=$(patsubst %,%.ttf,$(BASENAMES))
|
2013-11-28 22:56:43 +01:00
|
|
|
# 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
|
|
|
|
./validate-generate.sh $*
|
|
|
|
# TODO determine perfect parameters
|
2013-11-28 22:56:43 +01:00
|
|
|
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
|
|
|
|
|
2013-11-28 22:56:43 +01:00
|
|
|
zip: $(TTF_FILES) $(OTF_FILES) $(SOURCES)
|
2013-11-27 21:47:39 +01:00
|
|
|
zip CosmicSansNeueMono.zip OFL.txt README.md $^
|
|
|
|
|
|
|
|
clean:
|
2013-11-28 22:56:43 +01:00
|
|
|
rm $(TTF_FILES) $(OTF_FILES)
|
2013-11-27 21:47:39 +01:00
|
|
|
|