aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2019-07-28 11:11:31 +0200
committerRobert Alessi <alessi@robertalessi.net>2019-07-28 11:11:31 +0200
commit795bf9f7f9728cbb0916fb3c2b8ba5c42ebd1e4f (patch)
treed68395abe7c125c600050b3bdaec75cd94998933 /makefile
parentbf135099a0bb0bf00ea1ed1cee0e7f860672d167 (diff)
downloadoldstandard-795bf9f7f9728cbb0916fb3c2b8ba5c42ebd1e4f.tar.gz
use local Old Standard to compile the doc. updated makefile
Diffstat (limited to 'makefile')
-rw-r--r--makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/makefile b/makefile
index 1748e0a..c19afb8 100644
--- a/makefile
+++ b/makefile
@@ -2,23 +2,30 @@ pkg := oldstandard
2ver := $(shell grep '\\edef\\pkgver' $(pkg).tex | grep -Eo '[0-9]?\.[0-9]?') 2ver := $(shell grep '\\edef\\pkgver' $(pkg).tex | grep -Eo '[0-9]?\.[0-9]?')
3TEXMFDIR := $(shell kpsewhich -expand-var='$$TEXMFHOME') 3TEXMFDIR := $(shell kpsewhich -expand-var='$$TEXMFHOME')
4HOMEDIR := $$HOME 4HOMEDIR := $$HOME
5LOCALFONTDIR := $(HOMEDIR)/.local/share/fonts
5 6
6doc: clean 7doc: 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
12all: clean doc 13all: doc
13 14
14package: clean doc 15local: clean
16 cp otf/OldStandard-*.otf $(LOCALFONTDIR)/
17 luaotfload-tool --update
18
19package: 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
20clean: 25clean:
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