aboutsummaryrefslogtreecommitdiff
path: root/makefile
blob: 1748e0aaf2c021ea32a1d9f958dc30a7d3b5c0da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
pkg := oldstandard
ver  := $(shell grep '\\edef\\pkgver' $(pkg).tex | grep -Eo '[0-9]?\.[0-9]?')
TEXMFDIR := $(shell kpsewhich -expand-var='$$TEXMFHOME')
HOMEDIR := $$HOME

doc: clean
	lualatex --shell-escape $(pkg).tex
	biber $(pkg)
	lualatex --shell-escape $(pkg).tex
	lualatex --shell-escape $(pkg).tex

all: clean doc

package: clean doc
	mkdir $(pkg)
	cp *.{txt,md,tex,pdf} $(pkg)
	cp otf/*.otf $(pkg)
	tar czf $(pkg)-$(ver).tar.gz $(pkg)

clean:
	git clean -df
	pandoc README.md -o about.html

.PHONY: doc all package clean