-package: clean doc
- mkdir $(pkg)
- cp *.{txt,md,tex,pdf} $(pkg)
- cp otf/*.otf $(pkg)
- tar czf $(pkg).tar.gz $(pkg)
+local:
+ @rm -f $(LOCALFONTDIR)/OldStandard-*.otf
+ @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."