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 --- Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7d4e583..a270196 100644 --- a/Makefile +++ b/Makefile @@ -13,10 +13,15 @@ findopts := $(foreach ext,$(exts),-or -iname "*.$(ext)") all: sty $(NAME).pdf +testsamples: + if [ ! -d $(SAMPLES) ] ; \ + then echo "$(SAMPLES)/ directory is needed. Aborting." && exit 1 ; \ + fi + sty: clean $(CMP) $(NAME).ins >/dev/null -$(NAME).pdf: $(NAME).dtx +$(NAME).pdf: testsamples $(NAME).dtx @ echo "Making the sample files first..." $(MAKE) --directory=$(SAMPLES) @ echo "Building the documentation of $(NAME)..." @@ -33,7 +38,7 @@ $(NAME).pdf: $(NAME).dtx samples: clean sty $(MAKE) --directory=$(SAMPLES) -clean: +clean: testsamples rm -rf auto rm -f $(NAME).bib $(PWD)/TMP/*.bib rm -rf .backup @@ -93,4 +98,5 @@ package: distclean all tar czf $(NAME)-$(VERS).tar.gz $(NAME).tds.zip $(NAME)/ rm -rf $(NAME)/ -.PHONY: all clean distclean inst local uninst install uninstall zip package samples +.SILENT: testsamples +.PHONY: all clean distclean inst local uninst install uninstall zip package samples testsamples -- cgit v1.2.3