diff options
Diffstat (limited to 'samples/Makefile')
-rw-r--r-- | samples/Makefile | 8 |
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 |
14 | endef | 14 | endef |
15 | 15 | ||
16 | all: | 16 | all: 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 | ||
27 | test: | ||
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 |