2017-07-10 18:47:01 +02:00
|
|
|
SOURCES=$(wildcard Sources/FantasqueSansMono*.sfdir)
|
2017-07-10 12:36:11 +02:00
|
|
|
BASENAMES=$(patsubst Sources/%.sfdir,%,$(SOURCES))
|
2017-07-10 18:47:01 +02:00
|
|
|
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))
|
|
|
|
|
2017-07-10 18:47:01 +02:00
|
|
|
all: $(ZIP_FILE)
|
2013-11-27 21:47:39 +01:00
|
|
|
|
2017-07-10 18:47:01 +02:00
|
|
|
$(ZIP_FILE): $(TTF_FILES)
|
|
|
|
Scripts/zip-all-variants Variants
|
2013-12-22 13:49:16 +01:00
|
|
|
|
2017-07-10 18:47:01 +02: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
|
|
|
|
2017-07-10 18:47:01 +02:00
|
|
|
.PHONY: install clean
|
2014-01-20 14:54:44 +01:00
|
|
|
install: $(INSTALLED_TTF_FILES)
|
|
|
|
|
|
|
|
$(INSTALLED_TTF_FILES): $(TTF_FILES)
|
2015-03-17 07:48:30 +01:00
|
|
|
mkdir -p ~/.fonts/
|
2013-11-27 21:47:39 +01:00
|
|
|
cp $^ ~/.fonts/
|
|
|
|
fc-cache -f
|
|
|
|
|
|
|
|
clean:
|
2017-07-10 18:47:01 +02:00
|
|
|
rm -rf Variants
|