aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/makefile b/makefile
index 01482f8..8a85eb2 100644
--- a/makefile
+++ b/makefile
@@ -1,6 +1,8 @@
1pkg := oldstandard 1pkg := oldstandard
2SHELL = bash 2SHELL = bash
3ver := $(shell grep '\\edef\\pkgver' $(pkg).tex | grep -Eo '[0-9]{1,}\.[0-9]{1,}[a-z]{,1}') 3PWD = $(shell pwd)
4#ver := $(shell grep '\\edef\\pkgver' $(pkg).tex | grep -Eo '[0-9]{1,}\.[0-9]{1,}[a-z]{,1}')
5ver := $(shell grep '\\edef\\pkgver' oldstandard.tex | egrep -o '[0-9]{1,}\.[0-9]{1,}\-?[a-z]?')
4TEXMFDIR := $(shell kpsewhich -expand-var='$$TEXMFHOME') 6TEXMFDIR := $(shell kpsewhich -expand-var='$$TEXMFHOME')
5HOMEDIR := $$HOME 7HOMEDIR := $$HOME
6LOCALFONTDIR := $(HOMEDIR)/.local/share/fonts 8LOCALFONTDIR := $(HOMEDIR)/.local/share/fonts
@@ -41,6 +43,9 @@ package: doc
41 tar czf $(pkg)-$(ver).tar.gz $(pkg)-$(ver) 43 tar czf $(pkg)-$(ver).tar.gz $(pkg)-$(ver)
42 @echo "$(pkg)-$(ver).tar.gz has been created." 44 @echo "$(pkg)-$(ver).tar.gz has been created."
43 45
46hal: clean
47 zip -Drq $(PWD)/$(pkg)-$(ver).zip *
48
44clean: 49clean:
45 @echo "Removing OldStandard .otf files from $(LOCALFONTDIR)..." 50 @echo "Removing OldStandard .otf files from $(LOCALFONTDIR)..."
46 rm -f $(LOCALFONTDIR)/OldStandard-*.otf 51 rm -f $(LOCALFONTDIR)/OldStandard-*.otf