14
0
mirror of https://github.com/belluzj/fantasque-sans.git synced 2024-11-14 21:21:33 +01:00
fantasque-sans/Makefile

28 lines
662 B
Makefile
Raw Normal View History

SOURCES=$(wildcard Sources/FantasqueSansMono*.sfdir)
2017-07-10 12:36:11 +02:00
BASENAMES=$(patsubst Sources/%.sfdir,%,$(SOURCES))
TTF_FILES=$(patsubst %,Variants/Normal/TTF/%.ttf,$(BASENAMES))
ZIP_FILE=Variants/Normal/FantasqueSansMono.zip
2013-11-27 21:47:39 +01:00
2014-01-20 14:54:44 +01:00
INSTALLED_TTF_FILES=$(patsubst %,~/.fonts/%.ttf,$(BASENAMES))
all: $(ZIP_FILE)
2013-11-27 21:47:39 +01:00
$(ZIP_FILE): $(TTF_FILES)
Scripts/zip-all-variants Variants
2013-12-22 13:49:16 +01:00
Variants/Normal/TTF/%.ttf: Sources/%.sfdir
mkdir -p Variants
Scripts/validate-font "$<"
Scripts/generate-font-variants "$<" Variants
2013-11-27 21:47:39 +01:00
.PHONY: install clean
2014-01-20 14:54:44 +01:00
install: $(INSTALLED_TTF_FILES)
$(INSTALLED_TTF_FILES): $(TTF_FILES)
mkdir -p ~/.fonts/
2013-11-27 21:47:39 +01:00
cp $^ ~/.fonts/
fc-cache -f
clean:
rm -rf Variants