blob: 8cb7a982cddc898a7eff7fe83e0cb73657936ebb (
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
25
26
27
28
29
30
31
32
33
|
SHELL = bash
CMP = lualatex-dev
PWD = $(shell pwd)
exts := .tex .pdf -tei.xml
texsamples := $(basename $(wildcard $(PWD)/*.tex))
findopts := $(foreach ext,$(exts),-or -iname "*$(ext)")
define dosamples
$(CMP) --shell-escape $1 >/dev/null
$(CMP) --shell-escape $1 >/dev/null
$(CMP) --shell-escape $1 >/dev/null
$(CMP) --shell-escape $1 >/dev/null
endef
all: test
cp ../ekdosis.{lua,sty} .
$(foreach file,$(texsamples), $(call dosamples, $(file)))
rm -rf auto
find -iname "*~" -or -iname "*_out*.tex" | xargs rm -rf
find ./* -type f -iname "Makefile" $(findopts) > ls-R
rsync -aPr --files-from=ls-R . .backup
rm -rf *
cp -p -r .backup/* .
rm -rf .backup
test:
if [ ! -e ../ekdosis.sty ] || [ ! -e ../ekdosis.lua ] ;\
then echo "This Makefile cannot be invoked but recursively. Aborting." && exit 1 ;\
fi
.SILENT: test
.PHONY: all
|