mirror of
https://github.com/belluzj/fantasque-sans.git
synced 2024-12-22 23:41:30 +01:00
update version in fonts and seperate generation of archives
This commit is contained in:
parent
1673c2f023
commit
0b966ed620
Binary file not shown.
Binary file not shown.
Binary file not shown.
15
Makefile
15
Makefile
|
@ -9,7 +9,7 @@ EOT_FILES=$(patsubst %,Webfonts/%.eot,$(BASENAMES))
|
||||||
CSS_FRAGMENTS=$(patsubst %,Webfonts/%-decl.css,$(BASENAMES))
|
CSS_FRAGMENTS=$(patsubst %,Webfonts/%-decl.css,$(BASENAMES))
|
||||||
CSS_FILE=Webfonts/stylesheet.css
|
CSS_FILE=Webfonts/stylesheet.css
|
||||||
|
|
||||||
all: zip
|
all: zips
|
||||||
|
|
||||||
OTF/%.otf %.ttf Webfonts/%.svg Webfonts/%.eot Webfonts/%.woff Webfonts/%-decl.css: Sources/%.sfd
|
OTF/%.otf %.ttf Webfonts/%.svg Webfonts/%.eot Webfonts/%.woff Webfonts/%-decl.css: Sources/%.sfd
|
||||||
mkdir -p OTF TeX Webfonts
|
mkdir -p OTF TeX Webfonts
|
||||||
|
@ -22,15 +22,20 @@ OTF/%.otf %.ttf Webfonts/%.svg Webfonts/%.eot Webfonts/%.woff Webfonts/%-decl.cs
|
||||||
ttf2eot "$*.ttf" > "Webfonts/$*.eot"
|
ttf2eot "$*.ttf" > "Webfonts/$*.eot"
|
||||||
|
|
||||||
$(CSS_FILE): $(CSS_FRAGMENTS)
|
$(CSS_FILE): $(CSS_FRAGMENTS)
|
||||||
cat $(CSS_FRAGMENTS) > $(CSS_FILE)
|
cat $(foreach v,$(CSS_FRAGMENTS),$(if $(findstring Mono,$v),$v)) > $(CSS_FILE)
|
||||||
|
|
||||||
.PHONY: install clean zip
|
.PHONY: install clean zips zip-mono zip-prop
|
||||||
install: $(TTF_FILES)
|
install: $(TTF_FILES)
|
||||||
cp $^ ~/.fonts/
|
cp $^ ~/.fonts/
|
||||||
fc-cache -f
|
fc-cache -f
|
||||||
|
|
||||||
zip: $(TTF_FILES) $(OTF_FILES) $(SVG_FILES) $(EOT_FILES) $(WOFF_FILES) $(SOURCES) $(CSS_FILE)
|
zips: zip-mono zip-prop
|
||||||
zip CosmicSansNeueMono.zip OFL.txt README.md Webfonts/README.md $^
|
|
||||||
|
zip-mono: $(TTF_FILES) $(OTF_FILES) $(SVG_FILES) $(EOT_FILES) $(WOFF_FILES) $(SOURCES) $(CSS_FILE)
|
||||||
|
zip CosmicSansNeueMono.zip OFL.txt README.md Webfonts/README.md $(CSS_FILE) $(foreach v,$^,$(if $(findstring Mono,$v),$v))
|
||||||
|
|
||||||
|
zip-prop: $(TTF_FILES) $(OTF_FILES) $(SVG_FILES) $(EOT_FILES) $(WOFF_FILES) $(SOURCES)
|
||||||
|
zip CosmicSansNeue.zip OFL.txt README.md Webfonts/README.md $(foreach v,$^,$(if $(findstring Mono,$v),,$v))
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.ttf *.zip OTF/* TeX/* Webfonts/*.eot Webfonts/*.woff Webfonts/*.svg Webfonts/*.css
|
rm -f *.ttf *.zip OTF/* TeX/* Webfonts/*.eot Webfonts/*.woff Webfonts/*.svg Webfonts/*.css
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user