aboutsummaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2020-08-01 21:42:45 +0200
committerRobert Alessi <alessi@robertalessi.net>2020-08-01 21:42:45 +0200
commitb985ad19f4f15d7240a767cfeb2c985cff3d7c53 (patch)
tree4220c6fe86bb2d3265d112cd2ac0efd38084bf7e /samples
parent28a7327ec93e05eb46a718517427e3e12806e9ea (diff)
downloadekdosis-b985ad19f4f15d7240a767cfeb2c985cff3d7c53.tar.gz
added Makefile in samples/
Diffstat (limited to 'samples')
-rw-r--r--samples/Makefile26
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 @@
1SHELL = bash
2CMP = lualatex-dev
3PWD = $(shell pwd)
4
5exts := .tex .pdf -tei.xml
6texsamples := $(basename $(wildcard $(PWD)/*.tex))
7findopts := $(foreach ext,$(exts),-or -iname "*$(ext)")
8
9define 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
14endef
15
16
17all:
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