diff options
author | Robert Alessi <alessi@robertalessi.net> | 2020-08-01 21:42:45 +0200 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2020-08-01 21:42:45 +0200 |
commit | b985ad19f4f15d7240a767cfeb2c985cff3d7c53 (patch) | |
tree | 4220c6fe86bb2d3265d112cd2ac0efd38084bf7e /samples | |
parent | 28a7327ec93e05eb46a718517427e3e12806e9ea (diff) | |
download | ekdosis-b985ad19f4f15d7240a767cfeb2c985cff3d7c53.tar.gz |
added Makefile in samples/
Diffstat (limited to 'samples')
-rw-r--r-- | samples/Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/samples/Makefile b/samples/Makefile new file mode 100644 index 0000000..518ec87 --- /dev/null +++ b/samples/Makefile | |||
@@ -0,0 +1,26 @@ | |||
1 | SHELL = bash | ||
2 | CMP = lualatex-dev | ||
3 | PWD = $(shell pwd) | ||
4 | |||
5 | exts := .tex .pdf -tei.xml | ||
6 | texsamples := $(basename $(wildcard $(PWD)/*.tex)) | ||
7 | findopts := $(foreach ext,$(exts),-or -iname "*$(ext)") | ||
8 | |||
9 | define dosamples | ||
10 | $(CMP) --shell-escape $1 >/dev/null | ||
11 | $(CMP) --shell-escape $1 >/dev/null | ||
12 | $(CMP) --shell-escape $1 >/dev/null | ||
13 | $(CMP) --shell-escape $1 >/dev/null | ||
14 | endef | ||
15 | |||
16 | |||
17 | all: | ||
18 | cp ../ekdosis.{lua,sty} . | ||
19 | $(foreach file,$(texsamples), $(call dosamples, $(file))) | ||
20 | rm -rf auto | ||
21 | find -iname "*~" -or -iname "*_out*.tex" | xargs rm -rf | ||
22 | find ./* -type f -iname "Makefile" $(findopts) > ls-R | ||
23 | rsync -aPr --files-from=ls-R . .backup | ||
24 | rm -rf * | ||
25 | cp -p -r .backup/* . | ||
26 | rm -rf .backup | ||