diff options
author | Robert Alessi <alessi@robertalessi.net> | 2023-01-30 15:50:39 +0100 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2023-01-30 15:50:39 +0100 |
commit | 4cfc78d306397a24015a53081d2f3e5171b06520 (patch) | |
tree | eb8b0724cd97b8587e780f81665e9dfbe0153d7c /makefile | |
parent | 4f0965fe25a2a7862dffa5dd9fb02e684847c56b (diff) | |
download | oldstandard-4cfc78d306397a24015a53081d2f3e5171b06520.tar.gz |
updated AUTHORS LICENSE README makefile and .tex file
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 |