X-Git-Url: https://git.ladys.computer/OldStandard/blobdiff_plain/6dbd06c08b80333d045a849c5b785e7bb90012dd..9ab9e5ce6512e2b74fa0cae5ffedcdc5e93602b4:/makefile diff --git a/makefile b/makefile index 5e3e571..01482f8 100644 --- a/makefile +++ b/makefile @@ -26,12 +26,18 @@ local: @echo "Installing latest OldStandard .otf files in $(LOCALFONTDIR)..." cp otf/OldStandard-*.otf $(LOCALFONTDIR)/ luaotfload-tool --update + @echo "Installing .fontspec files..." + if [ ! -d "$(TEXMFDIR)/tex/latex/fontspec" ]; then \ + mkdir -p $(TEXMFDIR)/tex/latex/fontspec; \ + fi + cp fontspec/OldStandard.fontspec $(TEXMFDIR)/tex/latex/fontspec @echo "Done." package: doc mkdir $(pkg)-$(ver) cp *.{txt,md,lua,tex,pdf} $(pkg)-$(ver) cp otf/*.otf $(pkg)-$(ver) + cp fontspec/*.fontspec $(pkg)-$(ver) tar czf $(pkg)-$(ver).tar.gz $(pkg)-$(ver) @echo "$(pkg)-$(ver).tar.gz has been created." @@ -39,6 +45,8 @@ clean: @echo "Removing OldStandard .otf files from $(LOCALFONTDIR)..." rm -f $(LOCALFONTDIR)/OldStandard-*.otf luaotfload-tool --update + @echo "Removing .fontspec files from local texmf dir..." + rm -f $(TEXMFDIR)/tex/latex/fontspec/OldStandard.fontspec git clean -df pandoc README.md -o about.html @echo "Done."