aboutsummaryrefslogtreecommitdiff
path: root/samples/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'samples/Makefile')
-rw-r--r--samples/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/samples/Makefile b/samples/Makefile
index 49bb11b..8cb7a98 100644
--- a/samples/Makefile
+++ b/samples/Makefile
@@ -13,7 +13,7 @@ define dosamples
13 $(CMP) --shell-escape $1 >/dev/null 13 $(CMP) --shell-escape $1 >/dev/null
14endef 14endef
15 15
16all: 16all: test
17 cp ../ekdosis.{lua,sty} . 17 cp ../ekdosis.{lua,sty} .
18 $(foreach file,$(texsamples), $(call dosamples, $(file))) 18 $(foreach file,$(texsamples), $(call dosamples, $(file)))
19 rm -rf auto 19 rm -rf auto
@@ -24,4 +24,10 @@ all:
24 cp -p -r .backup/* . 24 cp -p -r .backup/* .
25 rm -rf .backup 25 rm -rf .backup
26 26
27test:
28 if [ ! -e ../ekdosis.sty ] || [ ! -e ../ekdosis.lua ] ;\
29 then echo "This Makefile cannot be invoked but recursively. Aborting." && exit 1 ;\
30 fi
31
32.SILENT: test
27.PHONY: all 33.PHONY: all