mirror of
https://github.com/rsms/inter.git
synced 2024-12-26 00:54:14 +03:00
makefile
This commit is contained in:
parent
ee6f3d71d7
commit
69d824fc5b
19
Makefile
19
Makefile
@ -47,6 +47,8 @@ all_const_hinted: all_ttf_hinted all_web_hinted
|
||||
all_var: $(FONTDIR)/var/Inter-UI.var.woff2
|
||||
all_var_hinted: $(FONTDIR)/var-hinted/Inter-UI.var.ttf $(FONTDIR)/var-hinted/Inter-UI.var.woff2
|
||||
|
||||
.PHONY: all_const all_const_hinted all_var all_var_hinted
|
||||
|
||||
export PATH := $(PWD)/build/venv/bin:$(PATH)
|
||||
|
||||
# generated.make is automatically generated by init.sh and defines depenencies for
|
||||
@ -72,7 +74,7 @@ build/%.woff: build/%.ttf
|
||||
|
||||
# UFO -> OTF, TTF
|
||||
|
||||
$(FONTDIR)/var/%.ttf: src/Inter-UI.designspace $(Regular_ufo_d) $(Black_ufo_d)
|
||||
$(FONTDIR)/var/Inter-UI.var.ttf: src/Inter-UI.designspace $(Regular_ufo_d) $(Black_ufo_d)
|
||||
misc/fontbuild compile-var -o $@ src/Inter-UI.designspace
|
||||
|
||||
$(FONTDIR)/const/Inter-UI-Regular.%: src/Inter-UI.designspace $(Regular_ufo_d)
|
||||
@ -81,6 +83,11 @@ $(FONTDIR)/const/Inter-UI-Regular.%: src/Inter-UI.designspace $(Regular_ufo_d)
|
||||
$(FONTDIR)/const/Inter-UI-Black.%: src/Inter-UI.designspace $(Black_ufo_d)
|
||||
misc/fontbuild compile -o $@ src/Inter-UI-Black.ufo
|
||||
|
||||
Italic_ufo_d := $(wildcard src/Inter-UI-RegularItalic.ufo/*.{fea,plist} src/Inter-UI-RegularItalic.ufo/glyphs/*.{glif,plist})
|
||||
|
||||
$(FONTDIR)/const/Inter-UI-Italic.%: src/Inter-UI.designspace $(Italic_ufo_d)
|
||||
misc/fontbuild compile -o $@ src/Inter-UI-RegularItalic.ufo
|
||||
|
||||
$(FONTDIR)/const/Inter-UI-%.otf: build/ufo/Inter-UI-%.ufo src/Inter-UI.designspace $(Regular_ufo_d) $(Black_ufo_d)
|
||||
misc/fontbuild compile -o $@ $<
|
||||
|
||||
@ -95,16 +102,10 @@ src/Inter-UI.designspace: src/Inter-UI.glyphs
|
||||
designspace: src/Inter-UI.designspace
|
||||
.PHONY: designspace
|
||||
|
||||
# These rules simply short-circuit Make for performance
|
||||
# short-circuit Make for performance
|
||||
src/Inter-UI.glyphs:
|
||||
@true
|
||||
|
||||
$(Regular_ufo_d):
|
||||
@true
|
||||
|
||||
$(Black_ufo_d):
|
||||
@true
|
||||
|
||||
# instance UFOs <- master UFOs
|
||||
build/ufo/Inter-UI-%.ufo: src/Inter-UI.designspace $(Regular_ufo_d) $(Black_ufo_d)
|
||||
misc/fontbuild instancegen src/Inter-UI.designspace $*
|
||||
@ -266,4 +267,4 @@ install: install_otf
|
||||
clean:
|
||||
rm -rvf build/tmp build/fonts
|
||||
|
||||
.PHONY: all web clean install install_otf install_ttf deploy pre_dist dist geninfo copy_docs_fonts all_const_hinted test glyphsync
|
||||
.PHONY: all web clean install install_otf install_ttf deploy pre_dist dist geninfo copy_docs_fonts test glyphsync
|
||||
|
Loading…
Reference in New Issue
Block a user