diff options
author | Robert Alessi <alessi@robertalessi.net> | 2020-08-14 10:52:56 +0200 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2020-08-14 10:52:56 +0200 |
commit | 4b05238fee9c43acb8d05b98779e7c559e651c9d (patch) | |
tree | 301b0ac76bcd80285cb536d0661702c63f7fa93c /Makefile | |
parent | 70d00b9ff02d4e91e8925fc55fcab4658b6ebe37 (diff) | |
download | ekdosis-4b05238fee9c43acb8d05b98779e7c559e651c9d.tar.gz |
adapted makefiles. a few additions in the documentation. this is v1.0
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -13,10 +13,15 @@ findopts := $(foreach ext,$(exts),-or -iname "*.$(ext)") | |||
13 | 13 | ||
14 | all: sty $(NAME).pdf | 14 | all: sty $(NAME).pdf |
15 | 15 | ||
16 | testsamples: | ||
17 | if [ ! -d $(SAMPLES) ] ; \ | ||
18 | then echo "$(SAMPLES)/ directory is needed. Aborting." && exit 1 ; \ | ||
19 | fi | ||
20 | |||
16 | sty: clean | 21 | sty: 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 | |||
33 | samples: clean sty | 38 | samples: clean sty |
34 | $(MAKE) --directory=$(SAMPLES) | 39 | $(MAKE) --directory=$(SAMPLES) |
35 | 40 | ||
36 | clean: | 41 | clean: 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 | ||