diff options
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,5 @@ | |||
1 | pkg=oldstandard-t | 1 | pkg := oldstandard-t |
2 | ver := $(shell grep '\\edef\\pkgver' $(pkg).tex | grep -Eo '[0-9]?\.[0-9]?') | ||
2 | TEXMFDIR := $(shell kpsewhich -expand-var='$$TEXMFHOME') | 3 | TEXMFDIR := $(shell kpsewhich -expand-var='$$TEXMFHOME') |
3 | HOMEDIR := $$HOME | 4 | HOMEDIR := $$HOME |
4 | 5 | ||
@@ -14,7 +15,7 @@ package: clean doc | |||
14 | mkdir $(pkg) | 15 | mkdir $(pkg) |
15 | cp *.{txt,md,tex,pdf} $(pkg) | 16 | cp *.{txt,md,tex,pdf} $(pkg) |
16 | cp otf/*.otf $(pkg) | 17 | cp otf/*.otf $(pkg) |
17 | tar czf $(pkg).tar.gz $(pkg) | 18 | tar czf $(pkg)-$(ver).tar.gz $(pkg) |
18 | 19 | ||
19 | clean: | 20 | clean: |
20 | git clean -df | 21 | git clean -df |