diff options
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,6 +1,8 @@ | |||
1 | pkg := oldstandard | 1 | pkg := oldstandard |
2 | SHELL = bash | 2 | SHELL = bash |
3 | ver := $(shell grep '\\edef\\pkgver' $(pkg).tex | grep -Eo '[0-9]{1,}\.[0-9]{1,}[a-z]{,1}') | 3 | PWD = $(shell pwd) |
4 | #ver := $(shell grep '\\edef\\pkgver' $(pkg).tex | grep -Eo '[0-9]{1,}\.[0-9]{1,}[a-z]{,1}') | ||
5 | ver := $(shell grep '\\edef\\pkgver' oldstandard.tex | egrep -o '[0-9]{1,}\.[0-9]{1,}\-?[a-z]?') | ||
4 | TEXMFDIR := $(shell kpsewhich -expand-var='$$TEXMFHOME') | 6 | TEXMFDIR := $(shell kpsewhich -expand-var='$$TEXMFHOME') |
5 | HOMEDIR := $$HOME | 7 | HOMEDIR := $$HOME |
6 | LOCALFONTDIR := $(HOMEDIR)/.local/share/fonts | 8 | LOCALFONTDIR := $(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 | ||
46 | hal: clean | ||
47 | zip -Drq $(PWD)/$(pkg)-$(ver).zip * | ||
48 | |||
44 | clean: | 49 | clean: |
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 |