diff options
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -2,23 +2,30 @@ pkg := oldstandard | |||
2 | ver := $(shell grep '\\edef\\pkgver' $(pkg).tex | grep -Eo '[0-9]?\.[0-9]?') | 2 | ver := $(shell grep '\\edef\\pkgver' $(pkg).tex | grep -Eo '[0-9]?\.[0-9]?') |
3 | TEXMFDIR := $(shell kpsewhich -expand-var='$$TEXMFHOME') | 3 | TEXMFDIR := $(shell kpsewhich -expand-var='$$TEXMFHOME') |
4 | HOMEDIR := $$HOME | 4 | HOMEDIR := $$HOME |
5 | LOCALFONTDIR := $(HOMEDIR)/.local/share/fonts | ||
5 | 6 | ||
6 | doc: clean | 7 | doc: local |
7 | lualatex --shell-escape $(pkg).tex | 8 | lualatex --shell-escape $(pkg).tex |
8 | biber $(pkg) | 9 | biber $(pkg) |
9 | lualatex --shell-escape $(pkg).tex | 10 | lualatex --shell-escape $(pkg).tex |
10 | lualatex --shell-escape $(pkg).tex | 11 | lualatex --shell-escape $(pkg).tex |
11 | 12 | ||
12 | all: clean doc | 13 | all: doc |
13 | 14 | ||
14 | package: clean doc | 15 | local: clean |
16 | cp otf/OldStandard-*.otf $(LOCALFONTDIR)/ | ||
17 | luaotfload-tool --update | ||
18 | |||
19 | package: doc | ||
15 | mkdir $(pkg) | 20 | mkdir $(pkg) |
16 | cp *.{txt,md,tex,pdf} $(pkg) | 21 | cp *.{txt,md,tex,pdf} $(pkg) |
17 | cp otf/*.otf $(pkg) | 22 | cp otf/*.otf $(pkg) |
18 | tar czf $(pkg)-$(ver).tar.gz $(pkg) | 23 | tar czf $(pkg)-$(ver).tar.gz $(pkg) |
19 | 24 | ||
20 | clean: | 25 | clean: |
26 | rm -f $(LOCALFONTDIR)/OldStandard-*.otf | ||
27 | luaotfload-tool --update | ||
21 | git clean -df | 28 | git clean -df |
22 | pandoc README.md -o about.html | 29 | pandoc README.md -o about.html |
23 | 30 | ||
24 | .PHONY: doc all package clean | 31 | .PHONY: doc all local package clean |