X-Git-Url: https://git.ladys.computer/OldStandard/blobdiff_plain/fb0d26a824957897937a33033f1d321251ae03f6..cf3c3b806afd63fc1e054bb346f7663c8f98fd76:/makefile diff --git a/makefile b/makefile index 8497892..c19afb8 100644 --- a/makefile +++ b/makefile @@ -1,23 +1,31 @@ -pkg=oldstandard-t +pkg := oldstandard +ver := $(shell grep '\\edef\\pkgver' $(pkg).tex | grep -Eo '[0-9]?\.[0-9]?') TEXMFDIR := $(shell kpsewhich -expand-var='$$TEXMFHOME') HOMEDIR := $$HOME +LOCALFONTDIR := $(HOMEDIR)/.local/share/fonts -doc: clean +doc: local lualatex --shell-escape $(pkg).tex biber $(pkg) lualatex --shell-escape $(pkg).tex lualatex --shell-escape $(pkg).tex -all: clean doc +all: doc -package: clean doc +local: clean + cp otf/OldStandard-*.otf $(LOCALFONTDIR)/ + luaotfload-tool --update + +package: doc mkdir $(pkg) cp *.{txt,md,tex,pdf} $(pkg) cp otf/*.otf $(pkg) - tar czf $(pkg).tar.gz $(pkg) + tar czf $(pkg)-$(ver).tar.gz $(pkg) clean: + rm -f $(LOCALFONTDIR)/OldStandard-*.otf + luaotfload-tool --update git clean -df pandoc README.md -o about.html -.PHONY: doc all package clean +.PHONY: doc all local package clean