From 4b05238fee9c43acb8d05b98779e7c559e651c9d Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Fri, 14 Aug 2020 10:52:56 +0200 Subject: adapted makefiles. a few additions in the documentation. this is v1.0 --- samples/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'samples/Makefile') diff --git a/samples/Makefile b/samples/Makefile index 49bb11b..8cb7a98 100644 --- a/samples/Makefile +++ b/samples/Makefile @@ -13,7 +13,7 @@ define dosamples $(CMP) --shell-escape $1 >/dev/null endef -all: +all: test cp ../ekdosis.{lua,sty} . $(foreach file,$(texsamples), $(call dosamples, $(file))) rm -rf auto @@ -24,4 +24,10 @@ all: 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 -- cgit v1.2.3