aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2020-08-14 10:52:56 +0200
committerRobert Alessi <alessi@robertalessi.net>2020-08-14 10:52:56 +0200
commit4b05238fee9c43acb8d05b98779e7c559e651c9d (patch)
tree301b0ac76bcd80285cb536d0661702c63f7fa93c /Makefile
parent70d00b9ff02d4e91e8925fc55fcab4658b6ebe37 (diff)
downloadekdosis-4b05238fee9c43acb8d05b98779e7c559e651c9d.tar.gz
adapted makefiles. a few additions in the documentation. this is v1.0
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 9 insertions, 3 deletions
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)")
13 13
14all: sty $(NAME).pdf 14all: sty $(NAME).pdf
15 15
16testsamples:
17 if [ ! -d $(SAMPLES) ] ; \
18 then echo "$(SAMPLES)/ directory is needed. Aborting." && exit 1 ; \
19 fi
20
16sty: clean 21sty: clean
17 $(CMP) $(NAME).ins >/dev/null 22 $(CMP) $(NAME).ins >/dev/null
18 23
19$(NAME).pdf: $(NAME).dtx 24$(NAME).pdf: testsamples $(NAME).dtx
20 @ echo "Making the sample files first..." 25 @ echo "Making the sample files first..."
21 $(MAKE) --directory=$(SAMPLES) 26 $(MAKE) --directory=$(SAMPLES)
22 @ echo "Building the documentation of $(NAME)..." 27 @ echo "Building the documentation of $(NAME)..."
@@ -33,7 +38,7 @@ $(NAME).pdf: $(NAME).dtx
33samples: clean sty 38samples: clean sty
34 $(MAKE) --directory=$(SAMPLES) 39 $(MAKE) --directory=$(SAMPLES)
35 40
36clean: 41clean: testsamples
37 rm -rf auto 42 rm -rf auto
38 rm -f $(NAME).bib $(PWD)/TMP/*.bib 43 rm -f $(NAME).bib $(PWD)/TMP/*.bib
39 rm -rf .backup 44 rm -rf .backup
@@ -93,4 +98,5 @@ package: distclean all
93 tar czf $(NAME)-$(VERS).tar.gz $(NAME).tds.zip $(NAME)/ 98 tar czf $(NAME)-$(VERS).tar.gz $(NAME).tds.zip $(NAME)/
94 rm -rf $(NAME)/ 99 rm -rf $(NAME)/
95 100
96.PHONY: all clean distclean inst local uninst install uninstall zip package samples 101.SILENT: testsamples
102.PHONY: all clean distclean inst local uninst install uninstall zip package samples testsamples