2022-05-26 21:20:06 +03:00
|
|
|
# List all targets with 'make list'
|
|
|
|
SRCDIR := $(abspath $(lastword $(MAKEFILE_LIST))/..)
|
|
|
|
FONTDIR := build/fonts
|
|
|
|
UFODIR := build/ufo
|
|
|
|
BIN := $(SRCDIR)/build/venv/bin
|
2022-06-03 20:28:21 +03:00
|
|
|
VENV := build/venv/bin/activate
|
2022-05-26 21:20:06 +03:00
|
|
|
VERSION := $(shell cat version.txt)
|
|
|
|
MAKEFILE := $(lastword $(MAKEFILE_LIST))
|
2020-04-06 00:18:45 +03:00
|
|
|
|
2021-06-18 22:54:01 +03:00
|
|
|
export PATH := $(BIN):$(PATH)
|
|
|
|
|
2022-05-26 21:20:06 +03:00
|
|
|
default: all
|
2018-11-26 19:57:00 +03:00
|
|
|
|
2023-04-27 20:40:17 +03:00
|
|
|
# arguments to fontmake
|
|
|
|
FM_ARGS :=
|
|
|
|
ifndef DEBUG
|
|
|
|
FM_ARGS += --verbose WARNING
|
|
|
|
endif
|
|
|
|
|
2022-05-26 21:20:06 +03:00
|
|
|
# ---------------------------------------------------------------------------------
|
|
|
|
# intermediate sources
|
2018-09-09 23:20:14 +03:00
|
|
|
|
2022-06-03 20:28:21 +03:00
|
|
|
$(UFODIR)/%.glyphs: src/%.glyphspackage | $(UFODIR) venv
|
|
|
|
. $(VENV) ; build/venv/bin/glyphspkg -o $(dir $@) $^
|
2022-05-27 23:44:19 +03:00
|
|
|
|
2019-10-23 06:15:09 +03:00
|
|
|
# features
|
2023-04-22 03:45:54 +03:00
|
|
|
build/features_data: $(UFODIR)/features $(wildcard src/features/*)
|
|
|
|
touch "$@"
|
|
|
|
$(UFODIR)/features:
|
2022-05-26 21:20:06 +03:00
|
|
|
@mkdir -p $(UFODIR)
|
2022-06-01 21:24:05 +03:00
|
|
|
@rm -f $(UFODIR)/features
|
|
|
|
@ln -s ../../src/features $(UFODIR)/features
|
2022-05-26 21:20:06 +03:00
|
|
|
|
2023-04-20 23:47:14 +03:00
|
|
|
# designspace & master UFOs
|
2023-05-29 20:05:47 +03:00
|
|
|
$(UFODIR)/%.var.designspace: $(UFODIR)/%.designspace | venv
|
|
|
|
. $(VENV) ; python misc/tools/gen-var-designspace.py $< $@
|
|
|
|
|
2023-04-20 23:47:14 +03:00
|
|
|
$(UFODIR)/%.designspace: $(UFODIR)/%.glyphs $(UFODIR)/features | venv
|
2023-04-27 20:40:17 +03:00
|
|
|
. $(VENV) ; fontmake $(FM_ARGS) -o ufo -g $< --designspace-path $@ \
|
2023-04-20 23:47:14 +03:00
|
|
|
--master-dir $(UFODIR) --instance-dir $(UFODIR)
|
2022-06-03 20:28:21 +03:00
|
|
|
. $(VENV) ; python misc/tools/postprocess-designspace.py $@
|
2022-05-26 21:20:06 +03:00
|
|
|
|
2023-04-20 23:47:14 +03:00
|
|
|
# instance UFOs from designspace
|
2023-04-22 03:45:54 +03:00
|
|
|
$(UFODIR)/Inter-%Italic.ufo: $(UFODIR)/Inter-Italic.designspace | venv
|
2022-10-08 03:45:32 +03:00
|
|
|
. $(VENV) ; bash misc/tools/gen-instance-ufo.sh $< $@
|
2023-04-22 03:45:54 +03:00
|
|
|
$(UFODIR)/Inter-%.ufo: $(UFODIR)/Inter-Roman.designspace | venv
|
2022-10-08 03:45:32 +03:00
|
|
|
. $(VENV) ; bash misc/tools/gen-instance-ufo.sh $< $@
|
2022-09-27 03:09:36 +03:00
|
|
|
|
2023-04-20 23:47:14 +03:00
|
|
|
# designspace & master UFOs (for editing)
|
|
|
|
build/ufo-editable/%.designspace: $(UFODIR)/%.glyphs $(UFODIR)/features | venv
|
|
|
|
@mkdir -p $(dir $@)
|
2023-04-27 20:40:17 +03:00
|
|
|
. $(VENV) ; fontmake $(FM_ARGS) -o ufo -g $< --designspace-path $@ \
|
2023-04-20 23:47:14 +03:00
|
|
|
--master-dir $(dir $@) --instance-dir $(dir $@)
|
|
|
|
. $(VENV) ; python misc/tools/postprocess-designspace.py --editable $@
|
|
|
|
|
|
|
|
# instance UFOs from designspace (for editing)
|
2023-04-22 03:45:54 +03:00
|
|
|
build/ufo-editable/Inter-%Italic.ufo: build/ufo-editable/Inter-Italic.designspace | venv
|
2023-04-20 23:47:14 +03:00
|
|
|
. $(VENV) ; bash misc/tools/gen-instance-ufo.sh $< $@
|
2023-04-22 03:45:54 +03:00
|
|
|
build/ufo-editable/Inter-%.ufo: build/ufo-editable/Inter-Roman.designspace | venv
|
2023-04-20 23:47:14 +03:00
|
|
|
. $(VENV) ; bash misc/tools/gen-instance-ufo.sh $< $@
|
|
|
|
|
|
|
|
editable-ufos: build/ufo-editable/.ok
|
|
|
|
@echo "Editable designspace & UFOs can be found here:"
|
|
|
|
@echo " $(PWD)/build/ufo-editable"
|
|
|
|
|
|
|
|
build/ufo-editable/.ok: build/ufo-editable/Inter-Roman.designspace build/ufo-editable/Inter-Italic.designspace
|
|
|
|
@rm -f build/ufo-editable/features
|
|
|
|
@ln -s ../../src/features build/ufo-editable/features
|
|
|
|
$(MAKE) \
|
|
|
|
build/ufo-editable/Inter-Light.ufo \
|
|
|
|
build/ufo-editable/Inter-ExtraLight.ufo \
|
|
|
|
build/ufo-editable/Inter-Medium.ufo \
|
|
|
|
build/ufo-editable/Inter-SemiBold.ufo \
|
|
|
|
build/ufo-editable/Inter-Bold.ufo \
|
|
|
|
build/ufo-editable/Inter-ExtraBold.ufo \
|
|
|
|
\
|
|
|
|
build/ufo-editable/Inter-LightItalic.ufo \
|
|
|
|
build/ufo-editable/Inter-ExtraLightItalic.ufo \
|
|
|
|
build/ufo-editable/Inter-MediumItalic.ufo \
|
|
|
|
build/ufo-editable/Inter-SemiBoldItalic.ufo \
|
|
|
|
build/ufo-editable/Inter-BoldItalic.ufo \
|
|
|
|
build/ufo-editable/Inter-ExtraBoldItalic.ufo \
|
|
|
|
\
|
|
|
|
build/ufo-editable/Inter-DisplayLight.ufo \
|
|
|
|
build/ufo-editable/Inter-DisplayExtraLight.ufo \
|
|
|
|
build/ufo-editable/Inter-DisplayMedium.ufo \
|
|
|
|
build/ufo-editable/Inter-DisplaySemiBold.ufo \
|
|
|
|
build/ufo-editable/Inter-DisplayBold.ufo \
|
|
|
|
build/ufo-editable/Inter-DisplayExtraBold.ufo \
|
|
|
|
\
|
|
|
|
build/ufo-editable/Inter-DisplayLightItalic.ufo \
|
|
|
|
build/ufo-editable/Inter-DisplayExtraLightItalic.ufo \
|
|
|
|
build/ufo-editable/Inter-DisplayMediumItalic.ufo \
|
|
|
|
build/ufo-editable/Inter-DisplaySemiBoldItalic.ufo \
|
|
|
|
build/ufo-editable/Inter-DisplayBoldItalic.ufo \
|
|
|
|
build/ufo-editable/Inter-DisplayExtraBoldItalic.ufo
|
|
|
|
@touch $@
|
|
|
|
@echo ""
|
|
|
|
|
2022-06-03 20:28:21 +03:00
|
|
|
# make sure intermediate files are not rm'd by make
|
2022-05-26 21:20:06 +03:00
|
|
|
.PRECIOUS: \
|
|
|
|
$(UFODIR)/Inter-Black.ufo \
|
|
|
|
$(UFODIR)/Inter-Regular.ufo \
|
|
|
|
$(UFODIR)/Inter-Thin.ufo \
|
|
|
|
$(UFODIR)/Inter-Light.ufo \
|
|
|
|
$(UFODIR)/Inter-ExtraLight.ufo \
|
|
|
|
$(UFODIR)/Inter-Medium.ufo \
|
|
|
|
$(UFODIR)/Inter-SemiBold.ufo \
|
|
|
|
$(UFODIR)/Inter-Bold.ufo \
|
|
|
|
$(UFODIR)/Inter-ExtraBold.ufo \
|
2022-09-27 03:09:36 +03:00
|
|
|
\
|
|
|
|
$(UFODIR)/Inter-BlackItalic.ufo \
|
|
|
|
$(UFODIR)/Inter-Italic.ufo \
|
|
|
|
$(UFODIR)/Inter-ThinItalic.ufo \
|
|
|
|
$(UFODIR)/Inter-LightItalic.ufo \
|
|
|
|
$(UFODIR)/Inter-ExtraLightItalic.ufo \
|
|
|
|
$(UFODIR)/Inter-MediumItalic.ufo \
|
|
|
|
$(UFODIR)/Inter-SemiBoldItalic.ufo \
|
|
|
|
$(UFODIR)/Inter-BoldItalic.ufo \
|
2022-05-26 21:20:06 +03:00
|
|
|
$(UFODIR)/Inter-ExtraBoldItalic.ufo \
|
2022-09-27 03:09:36 +03:00
|
|
|
\
|
|
|
|
$(UFODIR)/Inter-DisplayBlack.ufo \
|
2022-10-06 19:38:24 +03:00
|
|
|
$(UFODIR)/Inter-Display.ufo \
|
2022-09-27 03:09:36 +03:00
|
|
|
$(UFODIR)/Inter-DisplayThin.ufo \
|
|
|
|
$(UFODIR)/Inter-DisplayLight.ufo \
|
|
|
|
$(UFODIR)/Inter-DisplayExtraLight.ufo \
|
|
|
|
$(UFODIR)/Inter-DisplayMedium.ufo \
|
|
|
|
$(UFODIR)/Inter-DisplaySemiBold.ufo \
|
|
|
|
$(UFODIR)/Inter-DisplayBold.ufo \
|
|
|
|
$(UFODIR)/Inter-DisplayExtraBold.ufo \
|
|
|
|
\
|
|
|
|
$(UFODIR)/Inter-DisplayBlackItalic.ufo \
|
|
|
|
$(UFODIR)/Inter-DisplayItalic.ufo \
|
|
|
|
$(UFODIR)/Inter-DisplayThinItalic.ufo \
|
|
|
|
$(UFODIR)/Inter-DisplayLightItalic.ufo \
|
|
|
|
$(UFODIR)/Inter-DisplayExtraLightItalic.ufo \
|
|
|
|
$(UFODIR)/Inter-DisplayMediumItalic.ufo \
|
|
|
|
$(UFODIR)/Inter-DisplaySemiBoldItalic.ufo \
|
|
|
|
$(UFODIR)/Inter-DisplayBoldItalic.ufo \
|
|
|
|
$(UFODIR)/Inter-DisplayExtraBoldItalic.ufo \
|
|
|
|
\
|
|
|
|
$(UFODIR)/Inter-Roman.glyphs \
|
|
|
|
$(UFODIR)/Inter-Italic.glyphs \
|
|
|
|
$(UFODIR)/Inter-Roman.designspace \
|
2023-05-29 20:05:47 +03:00
|
|
|
$(UFODIR)/Inter-Italic.designspace \
|
|
|
|
$(UFODIR)/Inter-Roman.var.designspace \
|
|
|
|
$(UFODIR)/Inter-Italic.var.designspace
|
2022-05-26 21:20:06 +03:00
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------
|
|
|
|
# products
|
|
|
|
|
2023-04-22 19:23:41 +03:00
|
|
|
# arguments to fontmake
|
2023-04-27 20:40:17 +03:00
|
|
|
FM_ARGS_2 := $(FM_ARGS) \
|
2023-04-22 19:23:41 +03:00
|
|
|
--overlaps-backend pathops \
|
2023-05-31 21:36:33 +03:00
|
|
|
--flatten-components \
|
|
|
|
--no-autohint
|
2023-04-27 20:40:17 +03:00
|
|
|
ifndef DEBUG
|
|
|
|
FM_ARGS_2 += --production-names
|
2023-04-22 19:23:41 +03:00
|
|
|
else
|
2023-04-27 20:40:17 +03:00
|
|
|
FM_ARGS_2 += --no-production-names
|
2023-04-22 19:23:41 +03:00
|
|
|
endif
|
|
|
|
|
2023-04-22 03:45:54 +03:00
|
|
|
$(FONTDIR)/static/Inter-Displa%.otf: $(UFODIR)/Inter-Displa%.ufo build/features_data | $(FONTDIR)/static venv
|
2023-04-27 20:40:17 +03:00
|
|
|
. $(VENV) ; fontmake -u $< -o otf --output-path $@ $(FM_ARGS_2)
|
2023-04-22 03:45:54 +03:00
|
|
|
. $(VENV) ; python misc/tools/fix-static-display-names.py $@
|
2022-05-26 21:20:06 +03:00
|
|
|
|
2023-04-22 03:45:54 +03:00
|
|
|
$(FONTDIR)/static/%.otf: $(UFODIR)/%.ufo build/features_data | $(FONTDIR)/static venv
|
2023-04-27 20:40:17 +03:00
|
|
|
. $(VENV) ; fontmake -u $< -o otf --output-path $@ $(FM_ARGS_2)
|
2023-04-22 03:45:54 +03:00
|
|
|
|
|
|
|
|
|
|
|
$(FONTDIR)/static/Inter-Displa%.ttf: $(UFODIR)/Inter-Displa%.ufo build/features_data | $(FONTDIR)/static venv
|
2023-04-27 20:40:17 +03:00
|
|
|
. $(VENV) ; fontmake -u $< -o ttf --output-path $@ $(FM_ARGS_2)
|
2023-04-22 03:45:54 +03:00
|
|
|
. $(VENV) ; python misc/tools/fix-static-display-names.py $@
|
|
|
|
|
|
|
|
$(FONTDIR)/static/%.ttf: $(UFODIR)/%.ufo build/features_data | $(FONTDIR)/static venv
|
2023-04-27 20:40:17 +03:00
|
|
|
. $(VENV) ; fontmake -u $< -o ttf --output-path $@ $(FM_ARGS_2)
|
2023-04-22 03:45:54 +03:00
|
|
|
|
2022-05-26 21:20:06 +03:00
|
|
|
|
2023-06-04 20:41:29 +03:00
|
|
|
$(FONTDIR)/static-hinted/%.ttf: $(FONTDIR)/static/%.ttf | $(FONTDIR)/static/Inter-Regular.ttf $(FONTDIR)/static-hinted venv
|
2023-06-07 20:09:39 +03:00
|
|
|
. $(VENV) ; python -m ttfautohint \
|
|
|
|
--windows-compatibility \
|
|
|
|
--reference $(FONTDIR)/static/Inter-Regular.ttf \
|
|
|
|
--no-info \
|
|
|
|
"$<" "$@"
|
2018-09-03 22:55:49 +03:00
|
|
|
|
2023-06-04 20:41:29 +03:00
|
|
|
$(FONTDIR)/var/.%.var.ttf: $(UFODIR)/%.var.designspace build/features_data | $(FONTDIR)/var venv
|
2023-04-27 20:40:17 +03:00
|
|
|
. $(VENV) ; fontmake -o variable -m $< --output-path $@ $(FM_ARGS_2)
|
2018-09-09 22:30:21 +03:00
|
|
|
|
2023-06-04 20:41:29 +03:00
|
|
|
$(FONTDIR)/var/.%.var.otf: $(UFODIR)/%.var.designspace build/features_data | $(FONTDIR)/var venv
|
2023-04-27 20:40:17 +03:00
|
|
|
. $(VENV) ; fontmake -o variable-cff2 -m $< --output-path $@ $(FM_ARGS_2)
|
2019-01-06 03:20:22 +03:00
|
|
|
|
2023-05-31 21:36:33 +03:00
|
|
|
|
2022-06-03 20:28:21 +03:00
|
|
|
%.woff2: %.ttf | venv
|
|
|
|
. $(VENV) ; misc/tools/woff2 compress -o "$@" "$<"
|
2019-01-04 02:10:08 +03:00
|
|
|
|
2023-05-31 21:36:33 +03:00
|
|
|
|
2023-06-04 22:30:42 +03:00
|
|
|
$(FONTDIR)/var/Inter-Variable.ttf: $(FONTDIR)/var/.Inter-Roman.var.ttf
|
|
|
|
. $(VENV) ; python misc/tools/bake-vf.py $^ -o $@
|
|
|
|
|
|
|
|
$(FONTDIR)/var/Inter-Variable-Italic.ttf: $(FONTDIR)/var/.Inter-Italic.var.ttf
|
|
|
|
. $(VENV) ; python misc/tools/bake-vf.py $^ -o $@
|
|
|
|
|
|
|
|
|
2022-05-26 21:20:06 +03:00
|
|
|
$(FONTDIR)/static:
|
|
|
|
mkdir -p $@
|
|
|
|
$(FONTDIR)/static-hinted:
|
|
|
|
mkdir -p $@
|
|
|
|
$(FONTDIR)/var:
|
|
|
|
mkdir -p $@
|
2022-05-27 23:44:19 +03:00
|
|
|
$(UFODIR):
|
|
|
|
mkdir -p $@
|
2019-01-04 02:10:08 +03:00
|
|
|
|
2022-09-27 03:09:36 +03:00
|
|
|
|
|
|
|
var: \
|
2023-06-04 20:41:29 +03:00
|
|
|
$(FONTDIR)/var/Inter-Variable.ttf \
|
|
|
|
$(FONTDIR)/var/Inter-Variable-Italic.ttf
|
2022-09-27 03:09:36 +03:00
|
|
|
|
|
|
|
var_web: \
|
2023-06-04 20:41:29 +03:00
|
|
|
$(FONTDIR)/var/Inter-Variable.woff2 \
|
|
|
|
$(FONTDIR)/var/Inter-Variable-Italic.woff2
|
2022-09-27 03:09:36 +03:00
|
|
|
|
|
|
|
web: var_web static_web
|
|
|
|
|
2023-04-23 22:52:46 +03:00
|
|
|
static: \
|
2023-05-30 19:35:11 +03:00
|
|
|
$(FONTDIR)/static-hinted/Inter.ttc
|
2023-04-23 22:52:46 +03:00
|
|
|
|
2023-05-29 20:05:47 +03:00
|
|
|
$(FONTDIR)/static/Inter.otc: \
|
2023-04-23 22:52:46 +03:00
|
|
|
$(FONTDIR)/static/Inter-Regular.otf \
|
|
|
|
$(FONTDIR)/static/Inter-Black.otf \
|
|
|
|
$(FONTDIR)/static/Inter-BlackItalic.otf \
|
|
|
|
$(FONTDIR)/static/Inter-Italic.otf \
|
|
|
|
$(FONTDIR)/static/Inter-Thin.otf \
|
|
|
|
$(FONTDIR)/static/Inter-ThinItalic.otf \
|
|
|
|
$(FONTDIR)/static/Inter-Light.otf \
|
|
|
|
$(FONTDIR)/static/Inter-LightItalic.otf \
|
|
|
|
$(FONTDIR)/static/Inter-ExtraLight.otf \
|
|
|
|
$(FONTDIR)/static/Inter-ExtraLightItalic.otf \
|
|
|
|
$(FONTDIR)/static/Inter-Medium.otf \
|
|
|
|
$(FONTDIR)/static/Inter-MediumItalic.otf \
|
|
|
|
$(FONTDIR)/static/Inter-SemiBold.otf \
|
|
|
|
$(FONTDIR)/static/Inter-SemiBoldItalic.otf \
|
|
|
|
$(FONTDIR)/static/Inter-Bold.otf \
|
|
|
|
$(FONTDIR)/static/Inter-BoldItalic.otf \
|
|
|
|
$(FONTDIR)/static/Inter-ExtraBold.otf \
|
|
|
|
$(FONTDIR)/static/Inter-ExtraBoldItalic.otf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayBlack.otf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayBlackItalic.otf \
|
|
|
|
$(FONTDIR)/static/Inter-Display.otf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayItalic.otf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayThin.otf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayThinItalic.otf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayLight.otf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayLightItalic.otf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayExtraLight.otf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayExtraLightItalic.otf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayMedium.otf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayMediumItalic.otf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplaySemiBold.otf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplaySemiBoldItalic.otf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayBold.otf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayBoldItalic.otf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayExtraBold.otf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayExtraBoldItalic.otf
|
|
|
|
. $(VENV) ; python -m fontTools.ttLib.__init__ -o $@ $^
|
|
|
|
|
2023-05-29 20:05:47 +03:00
|
|
|
$(FONTDIR)/static-hinted/Inter.ttc: \
|
2023-04-23 22:52:46 +03:00
|
|
|
$(FONTDIR)/static-hinted/Inter-Regular.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-Black.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-BlackItalic.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-Italic.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-Thin.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-ThinItalic.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-Light.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-LightItalic.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-ExtraLight.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-ExtraLightItalic.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-Medium.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-MediumItalic.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-SemiBold.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-SemiBoldItalic.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-Bold.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-BoldItalic.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-ExtraBold.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-ExtraBoldItalic.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayBlack.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayBlackItalic.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-Display.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayItalic.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayThin.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayThinItalic.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayLight.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayLightItalic.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayExtraLight.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayExtraLightItalic.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayMedium.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayMediumItalic.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplaySemiBold.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplaySemiBoldItalic.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayBold.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayBoldItalic.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayExtraBold.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayExtraBoldItalic.ttf
|
|
|
|
. $(VENV) ; python -m fontTools.ttLib.__init__ -o $@ $^
|
|
|
|
|
2022-05-26 21:20:06 +03:00
|
|
|
static_otf: \
|
|
|
|
$(FONTDIR)/static/Inter-Black.otf \
|
|
|
|
$(FONTDIR)/static/Inter-BlackItalic.otf \
|
|
|
|
$(FONTDIR)/static/Inter-Regular.otf \
|
|
|
|
$(FONTDIR)/static/Inter-Italic.otf \
|
|
|
|
$(FONTDIR)/static/Inter-Thin.otf \
|
|
|
|
$(FONTDIR)/static/Inter-ThinItalic.otf \
|
|
|
|
$(FONTDIR)/static/Inter-Light.otf \
|
|
|
|
$(FONTDIR)/static/Inter-LightItalic.otf \
|
|
|
|
$(FONTDIR)/static/Inter-ExtraLight.otf \
|
|
|
|
$(FONTDIR)/static/Inter-ExtraLightItalic.otf \
|
|
|
|
$(FONTDIR)/static/Inter-Medium.otf \
|
|
|
|
$(FONTDIR)/static/Inter-MediumItalic.otf \
|
|
|
|
$(FONTDIR)/static/Inter-SemiBold.otf \
|
|
|
|
$(FONTDIR)/static/Inter-SemiBoldItalic.otf \
|
|
|
|
$(FONTDIR)/static/Inter-Bold.otf \
|
|
|
|
$(FONTDIR)/static/Inter-BoldItalic.otf \
|
|
|
|
$(FONTDIR)/static/Inter-ExtraBold.otf \
|
2022-09-27 03:09:36 +03:00
|
|
|
$(FONTDIR)/static/Inter-ExtraBoldItalic.otf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayBlack.otf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayBlackItalic.otf \
|
2022-10-06 19:38:24 +03:00
|
|
|
$(FONTDIR)/static/Inter-Display.otf \
|
2022-09-27 03:09:36 +03:00
|
|
|
$(FONTDIR)/static/Inter-DisplayItalic.otf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayThin.otf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayThinItalic.otf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayLight.otf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayLightItalic.otf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayExtraLight.otf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayExtraLightItalic.otf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayMedium.otf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayMediumItalic.otf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplaySemiBold.otf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplaySemiBoldItalic.otf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayBold.otf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayBoldItalic.otf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayExtraBold.otf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayExtraBoldItalic.otf
|
2022-05-26 21:20:06 +03:00
|
|
|
|
|
|
|
static_ttf: \
|
|
|
|
$(FONTDIR)/static/Inter-Black.ttf \
|
|
|
|
$(FONTDIR)/static/Inter-BlackItalic.ttf \
|
|
|
|
$(FONTDIR)/static/Inter-Regular.ttf \
|
|
|
|
$(FONTDIR)/static/Inter-Italic.ttf \
|
|
|
|
$(FONTDIR)/static/Inter-Thin.ttf \
|
|
|
|
$(FONTDIR)/static/Inter-ThinItalic.ttf \
|
|
|
|
$(FONTDIR)/static/Inter-Light.ttf \
|
|
|
|
$(FONTDIR)/static/Inter-LightItalic.ttf \
|
|
|
|
$(FONTDIR)/static/Inter-ExtraLight.ttf \
|
|
|
|
$(FONTDIR)/static/Inter-ExtraLightItalic.ttf \
|
|
|
|
$(FONTDIR)/static/Inter-Medium.ttf \
|
|
|
|
$(FONTDIR)/static/Inter-MediumItalic.ttf \
|
|
|
|
$(FONTDIR)/static/Inter-SemiBold.ttf \
|
|
|
|
$(FONTDIR)/static/Inter-SemiBoldItalic.ttf \
|
|
|
|
$(FONTDIR)/static/Inter-Bold.ttf \
|
|
|
|
$(FONTDIR)/static/Inter-BoldItalic.ttf \
|
|
|
|
$(FONTDIR)/static/Inter-ExtraBold.ttf \
|
2022-09-27 03:09:36 +03:00
|
|
|
$(FONTDIR)/static/Inter-ExtraBoldItalic.ttf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayBlack.ttf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayBlackItalic.ttf \
|
2022-10-06 19:38:24 +03:00
|
|
|
$(FONTDIR)/static/Inter-Display.ttf \
|
2022-09-27 03:09:36 +03:00
|
|
|
$(FONTDIR)/static/Inter-DisplayItalic.ttf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayThin.ttf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayThinItalic.ttf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayLight.ttf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayLightItalic.ttf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayExtraLight.ttf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayExtraLightItalic.ttf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayMedium.ttf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayMediumItalic.ttf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplaySemiBold.ttf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplaySemiBoldItalic.ttf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayBold.ttf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayBoldItalic.ttf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayExtraBold.ttf \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayExtraBoldItalic.ttf
|
2022-05-26 21:20:06 +03:00
|
|
|
|
|
|
|
static_ttf_hinted: \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-Black.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-BlackItalic.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-Regular.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-Italic.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-Thin.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-ThinItalic.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-Light.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-LightItalic.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-ExtraLight.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-ExtraLightItalic.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-Medium.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-MediumItalic.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-SemiBold.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-SemiBoldItalic.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-Bold.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-BoldItalic.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-ExtraBold.ttf \
|
2022-09-27 03:09:36 +03:00
|
|
|
$(FONTDIR)/static-hinted/Inter-ExtraBoldItalic.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayBlack.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayBlackItalic.ttf \
|
2022-10-06 19:38:24 +03:00
|
|
|
$(FONTDIR)/static-hinted/Inter-Display.ttf \
|
2022-09-27 03:09:36 +03:00
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayItalic.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayThin.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayThinItalic.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayLight.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayLightItalic.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayExtraLight.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayExtraLightItalic.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayMedium.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayMediumItalic.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplaySemiBold.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplaySemiBoldItalic.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayBold.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayBoldItalic.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayExtraBold.ttf \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayExtraBoldItalic.ttf
|
2022-05-26 21:20:06 +03:00
|
|
|
|
|
|
|
static_web: \
|
|
|
|
$(FONTDIR)/static/Inter-Black.woff2 \
|
|
|
|
$(FONTDIR)/static/Inter-BlackItalic.woff2 \
|
|
|
|
$(FONTDIR)/static/Inter-Regular.woff2 \
|
|
|
|
$(FONTDIR)/static/Inter-Italic.woff2 \
|
|
|
|
$(FONTDIR)/static/Inter-Thin.woff2 \
|
|
|
|
$(FONTDIR)/static/Inter-ThinItalic.woff2 \
|
|
|
|
$(FONTDIR)/static/Inter-Light.woff2 \
|
|
|
|
$(FONTDIR)/static/Inter-LightItalic.woff2 \
|
|
|
|
$(FONTDIR)/static/Inter-ExtraLight.woff2 \
|
|
|
|
$(FONTDIR)/static/Inter-ExtraLightItalic.woff2 \
|
|
|
|
$(FONTDIR)/static/Inter-Medium.woff2 \
|
|
|
|
$(FONTDIR)/static/Inter-MediumItalic.woff2 \
|
|
|
|
$(FONTDIR)/static/Inter-SemiBold.woff2 \
|
|
|
|
$(FONTDIR)/static/Inter-SemiBoldItalic.woff2 \
|
|
|
|
$(FONTDIR)/static/Inter-Bold.woff2 \
|
|
|
|
$(FONTDIR)/static/Inter-BoldItalic.woff2 \
|
|
|
|
$(FONTDIR)/static/Inter-ExtraBold.woff2 \
|
2022-09-27 03:09:36 +03:00
|
|
|
$(FONTDIR)/static/Inter-ExtraBoldItalic.woff2 \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayBlack.woff2 \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayBlackItalic.woff2 \
|
2022-10-06 19:38:24 +03:00
|
|
|
$(FONTDIR)/static/Inter-Display.woff2 \
|
2022-09-27 03:09:36 +03:00
|
|
|
$(FONTDIR)/static/Inter-DisplayItalic.woff2 \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayThin.woff2 \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayThinItalic.woff2 \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayLight.woff2 \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayLightItalic.woff2 \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayExtraLight.woff2 \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayExtraLightItalic.woff2 \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayMedium.woff2 \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayMediumItalic.woff2 \
|
|
|
|
$(FONTDIR)/static/Inter-DisplaySemiBold.woff2 \
|
|
|
|
$(FONTDIR)/static/Inter-DisplaySemiBoldItalic.woff2 \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayBold.woff2 \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayBoldItalic.woff2 \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayExtraBold.woff2 \
|
|
|
|
$(FONTDIR)/static/Inter-DisplayExtraBoldItalic.woff2
|
2022-05-26 21:20:06 +03:00
|
|
|
|
|
|
|
static_web_hinted: \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-Black.woff2 \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-BlackItalic.woff2 \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-Regular.woff2 \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-Italic.woff2 \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-Thin.woff2 \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-ThinItalic.woff2 \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-Light.woff2 \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-LightItalic.woff2 \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-ExtraLight.woff2 \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-ExtraLightItalic.woff2 \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-Medium.woff2 \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-MediumItalic.woff2 \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-SemiBold.woff2 \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-SemiBoldItalic.woff2 \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-Bold.woff2 \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-BoldItalic.woff2 \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-ExtraBold.woff2 \
|
2022-09-27 03:09:36 +03:00
|
|
|
$(FONTDIR)/static-hinted/Inter-ExtraBoldItalic.woff2 \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayBlack.woff2 \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayBlackItalic.woff2 \
|
2022-10-06 19:38:24 +03:00
|
|
|
$(FONTDIR)/static-hinted/Inter-Display.woff2 \
|
2022-09-27 03:09:36 +03:00
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayItalic.woff2 \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayThin.woff2 \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayThinItalic.woff2 \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayLight.woff2 \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayLightItalic.woff2 \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayExtraLight.woff2 \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayExtraLightItalic.woff2 \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayMedium.woff2 \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayMediumItalic.woff2 \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplaySemiBold.woff2 \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplaySemiBoldItalic.woff2 \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayBold.woff2 \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayBoldItalic.woff2 \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayExtraBold.woff2 \
|
|
|
|
$(FONTDIR)/static-hinted/Inter-DisplayExtraBoldItalic.woff2
|
|
|
|
|
|
|
|
|
2023-05-29 20:05:47 +03:00
|
|
|
all: var static web static_otf static_ttf static_ttf_hinted static_web_hinted
|
2022-09-27 03:09:36 +03:00
|
|
|
|
2023-04-23 22:52:46 +03:00
|
|
|
.PHONY: \
|
|
|
|
all var var_web web \
|
|
|
|
static static_otf static_ttf static_ttf_hinted static_web static_web_hinted
|
2022-05-26 21:20:06 +03:00
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------
|
|
|
|
# testing
|
|
|
|
|
|
|
|
test: build/fontbakery-report-var.txt \
|
|
|
|
build/fontbakery-report-static.txt
|
2021-03-24 22:25:49 +03:00
|
|
|
|
|
|
|
# FBAKE_ARGS are common args for all fontbakery targets
|
|
|
|
FBAKE_ARGS := check-universal \
|
|
|
|
--no-colors \
|
|
|
|
--no-progress \
|
|
|
|
--loglevel WARN \
|
|
|
|
--succinct \
|
2022-05-26 21:20:06 +03:00
|
|
|
--full-lists \
|
2021-03-24 22:25:49 +03:00
|
|
|
-j \
|
2022-05-26 21:20:06 +03:00
|
|
|
-x com.google.fonts/check/family/win_ascent_and_descent
|
2019-01-04 02:10:08 +03:00
|
|
|
|
2022-09-27 03:09:36 +03:00
|
|
|
build/fontbakery-report-var.txt: \
|
2023-06-04 20:41:29 +03:00
|
|
|
$(FONTDIR)/var/Inter-Variable.ttf \
|
|
|
|
$(FONTDIR)/var/Inter-Variable-Italic.ttf \
|
2022-09-27 03:09:36 +03:00
|
|
|
| venv
|
2023-06-04 20:41:29 +03:00
|
|
|
@echo "fontbakery {Inter-Variable,Inter-Variable-Italic}.ttf > $(@) ..."
|
2022-06-03 20:28:21 +03:00
|
|
|
@. $(VENV) ; fontbakery \
|
2022-05-26 21:20:06 +03:00
|
|
|
$(FBAKE_ARGS) -x com.google.fonts/check/STAT_strings \
|
|
|
|
$^ > $@ \
|
|
|
|
|| (cat $@; echo "report at $@"; touch -m -t 199001010000 $@; exit 1)
|
2019-10-22 22:34:20 +03:00
|
|
|
|
2022-06-03 20:28:21 +03:00
|
|
|
build/fontbakery-report-static.txt: $(wildcard $(FONTDIR)/static/Inter-*.otf) | venv
|
2022-05-26 21:20:06 +03:00
|
|
|
@echo "fontbakery static/Inter-*.otf > $(@) ..."
|
2022-06-03 20:28:21 +03:00
|
|
|
@. $(VENV) ; fontbakery \
|
2022-05-26 21:20:06 +03:00
|
|
|
$(FBAKE_ARGS) -x com.google.fonts/check/family/underline_thickness \
|
|
|
|
$^ > $@ \
|
|
|
|
|| (cat $@; echo "report at $@"; touch -m -t 199001010000 $@; exit 1)
|
2019-10-22 22:34:20 +03:00
|
|
|
|
2022-05-26 21:20:06 +03:00
|
|
|
.PHONY: test
|
2019-01-06 03:20:22 +03:00
|
|
|
|
2022-05-26 21:20:06 +03:00
|
|
|
# ---------------------------------------------------------------------------------
|
|
|
|
# zip
|
2019-01-06 03:20:22 +03:00
|
|
|
|
2019-01-04 02:10:08 +03:00
|
|
|
zip: all
|
2022-05-26 21:20:06 +03:00
|
|
|
bash misc/makezip2.sh -reveal-in-finder \
|
|
|
|
"build/release/Inter-$(VERSION)-$(shell git rev-parse --short=10 HEAD).zip"
|
2020-04-06 00:18:45 +03:00
|
|
|
|
2022-09-27 03:09:36 +03:00
|
|
|
zip_beta: \
|
2023-06-04 20:41:29 +03:00
|
|
|
$(FONTDIR)/var/Inter-Variable.ttf \
|
|
|
|
$(FONTDIR)/var/Inter-Variable.woff2 \
|
|
|
|
$(FONTDIR)/var/Inter-Variable-Italic.ttf \
|
|
|
|
$(FONTDIR)/var/Inter-Variable-Italic.woff2
|
2022-05-31 03:59:50 +03:00
|
|
|
mkdir -p build/release
|
2022-09-27 03:09:36 +03:00
|
|
|
zip -j -q -X "build/release/Inter_beta-$(VERSION)-$(shell date '+%Y%m%d_%H%M')-$(shell git rev-parse --short=10 HEAD).zip" $^
|
2022-05-31 03:59:50 +03:00
|
|
|
|
2022-09-27 03:09:36 +03:00
|
|
|
.PHONY: zip zip_beta
|
2019-01-04 02:10:08 +03:00
|
|
|
|
2022-05-26 21:20:06 +03:00
|
|
|
# ---------------------------------------------------------------------------------
|
|
|
|
# distribution
|
|
|
|
# - preflight checks for existing version archive and dirty git state.
|
|
|
|
# - step1 rebuilds from scratch, since font version & ID is based on git hash.
|
|
|
|
# - step2 runs tests, then makes a zip archive and updates the website (docs/ dir.)
|
2020-04-10 01:11:59 +03:00
|
|
|
|
2022-05-26 21:20:06 +03:00
|
|
|
DIST_ZIP = build/release/Inter-${VERSION}.zip
|
2020-04-10 01:11:59 +03:00
|
|
|
|
2022-05-26 21:20:06 +03:00
|
|
|
dist: dist_preflight
|
|
|
|
@# rebuild since font version & ID is based on git hash
|
|
|
|
$(MAKE) -f $(MAKEFILE) -j$(nproc) dist_step1
|
|
|
|
$(MAKE) -f $(MAKEFILE) -j$(nproc) dist_step2
|
|
|
|
$(MAKE) -f $(MAKEFILE) dist_postflight
|
2019-01-04 02:10:08 +03:00
|
|
|
|
2022-05-26 21:20:06 +03:00
|
|
|
dist_preflight:
|
|
|
|
@echo "——————————————————————————————————————————————————————————————————"
|
2017-08-22 22:46:29 +03:00
|
|
|
@echo "Creating distribution for version ${VERSION}"
|
2022-05-26 21:20:06 +03:00
|
|
|
@echo "——————————————————————————————————————————————————————————————————"
|
|
|
|
@# check for existing version archive
|
|
|
|
@if [ -f "${DIST_ZIP}" ]; then \
|
|
|
|
echo "${DIST_ZIP} already exists. Bump version or rm zip file to continue." >&2; \
|
2017-08-22 22:46:29 +03:00
|
|
|
exit 1; \
|
2019-10-22 22:34:20 +03:00
|
|
|
fi
|
2022-05-26 21:20:06 +03:00
|
|
|
@# check for uncommitted changes
|
|
|
|
@git status --short | grep -qv '??' && (\
|
|
|
|
echo "Warning: uncommitted changes:" >&2; git status --short | grep -v '??' ;\
|
|
|
|
[ -t 1 ] || exit 1 ; \
|
|
|
|
printf "Press ENTER to continue or ^C to cancel " ; read X) || true
|
|
|
|
@#
|
2017-09-25 20:38:15 +03:00
|
|
|
|
2022-05-26 21:20:06 +03:00
|
|
|
dist_step1: clean
|
|
|
|
$(MAKE) -f $(MAKEFILE) -j$(nproc) all
|
|
|
|
|
|
|
|
dist_step2: test
|
|
|
|
$(MAKE) -f $(MAKEFILE) -j$(nproc) dist_zip dist_docs
|
|
|
|
|
2022-06-03 20:28:21 +03:00
|
|
|
dist_zip: | venv
|
|
|
|
. $(VENV) ; python misc/tools/patch-version.py misc/dist/inter.css
|
2022-05-26 21:20:06 +03:00
|
|
|
bash misc/makezip2.sh -reveal-in-finder "$(DIST_ZIP)"
|
|
|
|
|
|
|
|
dist_docs:
|
|
|
|
$(MAKE) -C docs -j$(nproc) dist
|
|
|
|
|
|
|
|
dist_postflight:
|
2017-08-22 22:46:29 +03:00
|
|
|
@echo "——————————————————————————————————————————————————————————————————"
|
|
|
|
@echo ""
|
2017-09-12 08:42:54 +03:00
|
|
|
@echo "Next steps:"
|
|
|
|
@echo ""
|
|
|
|
@echo "1) Commit & push changes"
|
|
|
|
@echo ""
|
2022-05-26 21:20:06 +03:00
|
|
|
@echo "2) Create new release with ${DIST_ZIP} at"
|
2017-09-19 01:58:34 +03:00
|
|
|
@echo " https://github.com/rsms/inter/releases/new?tag=v${VERSION}"
|
2017-08-22 22:46:29 +03:00
|
|
|
@echo ""
|
2018-09-04 05:01:04 +03:00
|
|
|
@echo "3) Bump version in version.txt (to the next future version)"
|
2022-05-26 21:20:06 +03:00
|
|
|
@echo " and commit & push changes"
|
2017-08-22 22:46:29 +03:00
|
|
|
@echo ""
|
|
|
|
@echo "——————————————————————————————————————————————————————————————————"
|
|
|
|
|
2022-05-26 21:20:06 +03:00
|
|
|
.PHONY: dist dist_preflight dist_step1 dist_step2 dist_zip dist_docs dist_postflight
|
2019-10-22 17:55:36 +03:00
|
|
|
|
|
|
|
|
2022-05-26 21:20:06 +03:00
|
|
|
# ---------------------------------------------------------------------------------
|
|
|
|
# install
|
2017-09-23 20:14:17 +03:00
|
|
|
|
2022-05-26 21:20:06 +03:00
|
|
|
INSTALLDIR := $(HOME)/Library/Fonts/Inter
|
2017-08-22 10:05:20 +03:00
|
|
|
|
2023-05-30 19:35:11 +03:00
|
|
|
install: install_var $(INSTALLDIR)/Inter.ttc | install_clean_otf
|
|
|
|
|
|
|
|
install_clean_otf:
|
2023-05-29 20:05:47 +03:00
|
|
|
@# Remove any old pre-ttc fonts
|
2023-04-23 22:52:46 +03:00
|
|
|
rm -rf $(INSTALLDIR)/Inter*.otf
|
2022-09-27 03:09:36 +03:00
|
|
|
|
|
|
|
install_var: \
|
2023-06-04 20:41:29 +03:00
|
|
|
$(INSTALLDIR)/Inter-Variable.ttf \
|
|
|
|
$(INSTALLDIR)/Inter-Variable-Italic.ttf
|
2020-03-22 02:48:59 +03:00
|
|
|
|
2023-05-30 19:35:11 +03:00
|
|
|
$(INSTALLDIR)/%.ttc: $(FONTDIR)/static-hinted/%.ttc | $(INSTALLDIR)
|
2023-04-23 22:52:46 +03:00
|
|
|
cp -a $^ $@
|
|
|
|
|
2023-05-30 19:35:11 +03:00
|
|
|
$(INSTALLDIR)/%.otc: $(FONTDIR)/static/%.otc | $(INSTALLDIR)
|
2023-05-29 20:05:47 +03:00
|
|
|
cp -a $^ $@
|
|
|
|
|
2023-06-04 20:41:29 +03:00
|
|
|
$(INSTALLDIR)/Inter-Variable.ttf: $(FONTDIR)/var/Inter-Variable.ttf | $(INSTALLDIR)
|
|
|
|
cp -a $^ $@
|
|
|
|
|
|
|
|
$(INSTALLDIR)/Inter-Variable-Italic.ttf: $(FONTDIR)/var/Inter-Variable-Italic.ttf | $(INSTALLDIR)
|
2022-05-26 21:20:06 +03:00
|
|
|
cp -a $^ $@
|
2020-03-22 02:48:59 +03:00
|
|
|
|
2023-06-04 20:41:29 +03:00
|
|
|
$(INSTALLDIR)/%.otf: $(FONTDIR)/static/%.otf | $(INSTALLDIR)
|
2022-05-26 21:20:06 +03:00
|
|
|
cp -a $^ $@
|
2020-03-22 02:48:59 +03:00
|
|
|
|
2022-05-26 21:20:06 +03:00
|
|
|
$(INSTALLDIR):
|
|
|
|
mkdir -p $@
|
2017-08-22 10:05:20 +03:00
|
|
|
|
2023-05-30 19:35:11 +03:00
|
|
|
.PHONY: install install_var install_clean_otf
|
2019-10-23 06:15:09 +03:00
|
|
|
|
2023-06-04 20:41:29 +03:00
|
|
|
# ---------------------------------------------------------------------------------
|
|
|
|
# debug
|
|
|
|
|
|
|
|
build/ttx/%.ttx: $(FONTDIR)/var/%.ttf
|
2023-06-05 01:36:01 +03:00
|
|
|
rm -rf "build/ttx/$(basename $(notdir $^))".*.ttx
|
2023-06-04 20:41:29 +03:00
|
|
|
mkdir -p build/ttx
|
|
|
|
cp $^ build/ttx/
|
|
|
|
ttx -x glyf -i -f -s build/ttx/$(notdir $^)
|
|
|
|
@echo "Dumped $(notdir $^) to build/ttx/$(basename $(notdir $^)).*.ttx"
|
|
|
|
|
|
|
|
ttx_var_roman: build/ttx/Inter-Variable.ttx
|
|
|
|
ttx_var_italic: build/ttx/Inter-Variable-Italic.ttx
|
|
|
|
ttx_var: ttx_var_roman ttx_var_italic
|
|
|
|
|
|
|
|
.PHONY: ttx_var ttx_var_roman ttx_var_italic
|
|
|
|
|
2022-05-26 21:20:06 +03:00
|
|
|
# ---------------------------------------------------------------------------------
|
|
|
|
# misc
|
2019-10-23 06:15:09 +03:00
|
|
|
|
2017-08-22 10:05:20 +03:00
|
|
|
clean:
|
2023-06-04 20:41:29 +03:00
|
|
|
rm -rf build/tmp build/fonts build/ufo build/googlefonts build/ttx || true
|
|
|
|
rm -rf build/tmp build/fonts build/ufo build/googlefonts build/ttx
|
2017-08-22 10:05:20 +03:00
|
|
|
|
2022-05-26 21:20:06 +03:00
|
|
|
docs:
|
|
|
|
$(MAKE) -C docs serve
|
|
|
|
|
|
|
|
# update_ucd downloads the latest Unicode data (Nothing depends on this target)
|
|
|
|
ucd_version := 12.1.0
|
|
|
|
update_ucd:
|
|
|
|
@echo "# Unicode $(ucd_version)" > misc/UnicodeData.txt
|
|
|
|
curl '-#' "https://www.unicode.org/Public/$(ucd_version)/ucd/UnicodeData.txt" \
|
|
|
|
>> misc/UnicodeData.txt
|
|
|
|
|
|
|
|
.PHONY: clean docs update_ucd
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------
|
|
|
|
# list make targets
|
|
|
|
#
|
|
|
|
# We copy the Makefile (first in MAKEFILE_LIST) and disable the include to only list
|
|
|
|
# primary targets, avoiding the generated targets.
|
|
|
|
list:
|
|
|
|
@mkdir -p build/etc \
|
|
|
|
&& cat $(MAKEFILE) \
|
|
|
|
| sed 's/include /#include /g' > build/etc/Makefile-list \
|
|
|
|
&& $(MAKE) -pRrq -f build/etc/Makefile-list : 2>/dev/null \
|
|
|
|
| awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' \
|
|
|
|
| sort \
|
|
|
|
| egrep -v -e '^_|/' \
|
|
|
|
| egrep -v -e '^[^[:alnum:]]' -e '^$@$$'
|
|
|
|
|
|
|
|
.PHONY: list
|
2022-06-03 20:28:21 +03:00
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------
|
|
|
|
# initialize toolchain
|
|
|
|
|
2023-04-05 23:23:06 +03:00
|
|
|
venv: build/venv/config2.stamp
|
2022-06-03 20:28:21 +03:00
|
|
|
|
2023-04-05 23:23:06 +03:00
|
|
|
build/venv/config2.stamp: Pipfile.lock Pipfile
|
2022-06-03 20:28:21 +03:00
|
|
|
@mkdir -p build
|
2023-04-05 23:23:06 +03:00
|
|
|
[ ! -f build/venv/config.stamp ] || rm -rf build/venv
|
|
|
|
[ -d build/venv ] || python3 -m venv build/venv
|
|
|
|
. $(VENV) ; pip install pipenv
|
|
|
|
. $(VENV) ; pipenv install
|
2022-06-03 20:28:21 +03:00
|
|
|
touch $@
|
|
|
|
|
2023-04-05 23:23:06 +03:00
|
|
|
venv-update:
|
|
|
|
. $(VENV) ; pipenv update
|
|
|
|
|
2022-06-03 20:28:21 +03:00
|
|
|
reset: clean
|
|
|
|
rm -rf build/venv
|
|
|
|
|
2023-04-05 23:23:06 +03:00
|
|
|
.PHONY: venv venv-update reset
|