summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2002-05-14 14:27:22 +0000
committertradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2002-05-14 14:27:22 +0000
commitbadfa5a901641621da659cac09edaf3af91ff0a8 (patch)
tree2eeb783a2a9824426df16318256fe1a7b8c83136 /Makefile
parentbe255f6c2cb3afc2a7116401d0bafd901e9fec01 (diff)
Delete the complete build directory instead of just removing all the files
therein when making the thornguide. This prevents 'Argument list too long' errors from the shell if there are very many files to be removed. This closes Documentation/1043. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2813 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 1093d1d0..6dc178d9 100644
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@
#
#
# @enddesc
-# @version $Id: Makefile,v 1.136 2002-04-27 11:44:46 allen Exp $
+# @version $Id: Makefile,v 1.137 2002-05-14 14:27:22 tradke Exp $
# @@*/
##################################################################################
@@ -939,8 +939,8 @@ ThornGuide.ps: ThornGuide
ThornGuide:
@echo $(DIVIDER)
@echo Creating thorn documentation ThornGuide.ps
- if test ! -d $(CCTK_HOME)/doc/ThornGuide/build ; then mkdir $(CCTK_HOME)/doc/ThornGuide/build ; fi
- rm -f $(CCTK_HOME)/doc/ThornGuide/build/*;
+ rm -rf $(CCTK_HOME)/doc/ThornGuide/build;
+ mkdir $(CCTK_HOME)/doc/ThornGuide/build;
@echo " Processing...."
cd $(CCTK_HOME)/doc/ThornGuide/build; \
$(MAKE) -f $(CCTK_HOME)/doc/ThornGuide/Makefile PERL=$(PERL) CCTK_HOME=$(CCTK_HOME); \
@@ -958,9 +958,9 @@ $(addsuffix -ThornGuide,$(CONFIGURATIONS)):
@echo $(DIVIDER)
@echo Creating ThornGuide for $(@:%-ThornGuide=%)
if test ! -d $(CONFIGS_DIR)/$(@:%-ThornGuide=%)/doc ; then mkdir $(CONFIGS_DIR)/$(@:%-ThornGuide=%)/doc; fi
- if test ! -d $(CONFIGS_DIR)/$(@:%-ThornGuide=%)/doc/build ; then mkdir $(CONFIGS_DIR)/$(@:%-ThornGuide=%)/doc/build; fi
+ rm -rf $(CONFIGS_DIR)/$(@:%-ThornGuide=%)/doc/build
+ mkdir $(CONFIGS_DIR)/$(@:%-ThornGuide=%)/doc/build
if test -r $(CONFIGS_DIR)/$(@:%-ThornGuide=%)/ThornList ; then \
- rm -f $(CONFIGS_DIR)/$(@:%-ThornGuide=%)/doc/build/*.*; \
cd $(CONFIGS_DIR)/$(@:%-ThornGuide=%)/doc/build; \
$(MAKE) -f $(CCTK_HOME)/doc/ThornGuide/Makefile THORNLIST=$(CONFIGS_DIR)/$(@:%-ThornGuide=%)/ThornList CCTK_HOME=$(CCTK_HOME) PERL=$(PERL) MASTER_FILE=ThornGuide-$(@:%-ThornGuide=%); \
cp ThornGuide-$(@:%-ThornGuide=%).ps $(CCTK_HOME)/ThornGuide-$(@:%-ThornGuide=%).ps; \