X-Git-Url: https://git.ladys.computer/OldStandard/blobdiff_plain/cae3b04aeb28ddfdf448e6e32bb5ad1bc9f3f0de..6dbd06c08b80333d045a849c5b785e7bb90012dd:/makefile?ds=sidebyside diff --git a/makefile b/makefile index a7b8032..5e3e571 100644 --- a/makefile +++ b/makefile @@ -1,4 +1,5 @@ pkg := oldstandard +SHELL = bash ver := $(shell grep '\\edef\\pkgver' $(pkg).tex | grep -Eo '[0-9]{1,}\.[0-9]{1,}[a-z]{,1}') TEXMFDIR := $(shell kpsewhich -expand-var='$$TEXMFHOME') HOMEDIR := $$HOME @@ -10,6 +11,9 @@ doc: local biber $(pkg) >/dev/null lualatex --shell-escape $(pkg).tex >/dev/null lualatex --shell-escape $(pkg).tex >/dev/null + @echo "Building font table..." + lualatex --shell-escape fonttable.tex >/dev/null + lualatex --shell-escape fonttable.tex >/dev/null @echo "Removing OldStandard .otf files from $(LOCALFONTDIR)..." rm -f $(LOCALFONTDIR)/OldStandard-*.otf luaotfload-tool --update @@ -26,7 +30,7 @@ local: package: doc mkdir $(pkg)-$(ver) - cp *.{txt,md,tex,pdf} $(pkg)-$(ver) + cp *.{txt,md,lua,tex,pdf} $(pkg)-$(ver) cp otf/*.otf $(pkg)-$(ver) tar czf $(pkg)-$(ver).tar.gz $(pkg)-$(ver) @echo "$(pkg)-$(ver).tar.gz has been created."