]> https://gitweb.dealii.org/ - dealii.git/commitdiff
If the creation of the Makefile.dep file fails, we are left with no rules to create...
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 23 Nov 2005 15:54:25 +0000 (15:54 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 23 Nov 2005 15:54:25 +0000 (15:54 +0000)
git-svn-id: https://svn.dealii.org/trunk@11779 0785d39b-7218-0410-832d-ea1e28bc413d

25 files changed:
deal.II/base/Makefile
deal.II/deal.II/Makefile
deal.II/examples/doxygen/Makefile
deal.II/examples/step-1/Makefile
deal.II/examples/step-10/Makefile
deal.II/examples/step-11/Makefile
deal.II/examples/step-12/Makefile
deal.II/examples/step-13/Makefile
deal.II/examples/step-14/Makefile
deal.II/examples/step-15/Makefile
deal.II/examples/step-16/Makefile
deal.II/examples/step-17/Makefile
deal.II/examples/step-18/Makefile
deal.II/examples/step-19/Makefile
deal.II/examples/step-2/Makefile
deal.II/examples/step-20/Makefile
deal.II/examples/step-3/Makefile
deal.II/examples/step-4/Makefile
deal.II/examples/step-5/Makefile
deal.II/examples/step-6/Makefile
deal.II/examples/step-7/Makefile
deal.II/examples/step-8/Makefile
deal.II/examples/step-9/Makefile
deal.II/lac/Makefile
tests/Makefile.rules

index 951601f9493250b0525c83c65ef256200d869560..63e13f0e0a835b5050df32750cd3cfc879cf70c2 100644 (file)
@@ -76,14 +76,12 @@ clean:
 # to remake this file upon inclusion at the bottom
 # of this file.
 #
-# If the file should turn out to be empty, then blow it
-# away to let make issue a proper error message rather than
-# some obscure follow-up problems
+# If the command fails, then remove Makefile.dep again and fail
 Makefile.dep: $(cc-files) $(h-files) Makefile $D/common/Make.global_options
        @echo ============================ Remaking base/Makefile
        @$D/common/scripts/make_dependencies $(INCLUDE) "-B$(LIBDIR)/base" $(cc-files) \
-               > Makefile.dep
-       @if test -s $@ ; then : else rm $@ ; fi
+               > $@ \
+        || (rm -f $@ ; false)
 
 
 
index 2b5653fde08e7ebb191c11cab623c702e56ad5a9..21a5fb8d11989c08e6c8144ffeeeede391670666 100644 (file)
@@ -159,17 +159,15 @@ $(LIBDIR)/libdeal_II_3d$(shared-lib-suffix): $(o-files-3d)
 # to remake this file upon inclusion at the bottom
 # of this file.
 #
-# If the file should turn out to be empty, then blow it
-# away to let make issue a proper error message rather than
-# some obscure follow-up problems
+# If the command fails, then remove Makefile.dep again and fail
 Makefile.dep: $(cc-files) $(h-files) Makefile $D/common/Make.global_options
        @echo "============================ Remaking deal.II/Makefile"
        @$D/common/scripts/make_dependencies $(INCLUDE) "-B\$$(LIBDIR)" $(cc-files) \
                | $(PERL) -p -e 's!LIBDIR\)/(.*):!LIBDIR)/DIM_PLACEHOLDER/$$1:!g;' \
                | $(PERL) -pe 's!((\.g)?.$(OBJEXT)):!_DIM_PLACEHOLDER$$1:!g;' \
                | $(PERL) -pe 's!^(.*)/DIM_PLACEHOLDER/(.*)_DIM_PLACEHOLDER(\..*):!$$1/1d/$$2_1d$$3 $$1/2d/$$2_2d$$3 $$1/3d/$$2_3d$$3:!g;'\
-               > Makefile.dep
-       @if test -s $@ ; then : else rm $@ ; fi
+               > $@ \
+        || (rm -f $@ ; false)
 
 
 # include all the dependencies
index 89776fff91a63cb72e401c3d37a2df2e41e0c64c..6ea5575bf63f199314562c541dad7f9b0b298688 100644 (file)
@@ -55,14 +55,13 @@ clean:
 # i.e. whenever one of the cc-/h-files changed. Make detects whether
 # to remake this file upon inclusion at the bottom of this file.
 #
-# If the file should turn out to be empty, then blow it
-# away to let make issue a proper error message rather than
-# some obscure follow-up problems
+# If the creation of Makefile.dep fails, blow it away and fail
 Makefile.dep: *.cc Makefile \
               $(shell echo $D/*/include/*/*.h)
        @echo ============================ Remaking $@
        @$D/common/scripts/make_dependencies  $(INCLUDE) -B. *.cc \
-               > Makefile.dep
+               > $@ \
+         || (rm -f $@ ; false)
        @if test -s $@ ; then : else rm $@ ; fi
 
 
index 45cd049a62528c87acb2f23304f77b648e62410b..8659d7278b9d955b738139d5518663726664e0df 100644 (file)
@@ -137,14 +137,13 @@ clean:
 # i.e. whenever one of the cc-/h-files changed. Make detects whether
 # to remake this file upon inclusion at the bottom of this file.
 #
-# If the file should turn out to be empty, then blow it
-# away to let make issue a proper error message rather than
-# some obscure follow-up problems
+# If the creation of Makefile.dep fails, blow it away and fail
 Makefile.dep: $(target).cc Makefile \
               $(shell echo $D/*/include/*/*.h)
        @echo ============================ Remaking $@
        @$D/common/scripts/make_dependencies  $(INCLUDE) -B. $(target).cc \
-               > Makefile.dep
+               > $@ \
+         || (rm -f $@ ; false)
        @if test -s $@ ; then : else rm $@ ; fi
 
 
index 8350f949751c54e4eedad1dda50c5dec6d911a1d..53690d1f96e7baaa17650a014e915d7ff4bf3f36 100644 (file)
@@ -137,14 +137,13 @@ clean:
 # i.e. whenever one of the cc-/h-files changed. Make detects whether
 # to remake this file upon inclusion at the bottom of this file.
 #
-# If the file should turn out to be empty, then blow it
-# away to let make issue a proper error message rather than
-# some obscure follow-up problems
+# If the creation of Makefile.dep fails, blow it away and fail
 Makefile.dep: $(target).cc Makefile \
               $(shell echo $D/*/include/*/*.h)
        @echo ============================ Remaking $@
        @$D/common/scripts/make_dependencies  $(INCLUDE) -B. $(target).cc \
-               > Makefile.dep
+               > $@ \
+         || (rm -f $@ ; false)
        @if test -s $@ ; then : else rm $@ ; fi
 
 
index 910356c898c4405733d8e2996e89245bc3790dcc..5cecab44d4351ffa1ed4b96339d2f4fb1a32234b 100644 (file)
@@ -137,14 +137,13 @@ clean:
 # i.e. whenever one of the cc-/h-files changed. Make detects whether
 # to remake this file upon inclusion at the bottom of this file.
 #
-# If the file should turn out to be empty, then blow it
-# away to let make issue a proper error message rather than
-# some obscure follow-up problems
+# If the creation of Makefile.dep fails, blow it away and fail
 Makefile.dep: $(target).cc Makefile \
               $(shell echo $D/*/include/*/*.h)
        @echo ============================ Remaking $@
        @$D/common/scripts/make_dependencies  $(INCLUDE) -B. $(target).cc \
-               > Makefile.dep
+               > $@ \
+         || (rm -f $@ ; false)
        @if test -s $@ ; then : else rm $@ ; fi
 
 
index 910356c898c4405733d8e2996e89245bc3790dcc..5cecab44d4351ffa1ed4b96339d2f4fb1a32234b 100644 (file)
@@ -137,14 +137,13 @@ clean:
 # i.e. whenever one of the cc-/h-files changed. Make detects whether
 # to remake this file upon inclusion at the bottom of this file.
 #
-# If the file should turn out to be empty, then blow it
-# away to let make issue a proper error message rather than
-# some obscure follow-up problems
+# If the creation of Makefile.dep fails, blow it away and fail
 Makefile.dep: $(target).cc Makefile \
               $(shell echo $D/*/include/*/*.h)
        @echo ============================ Remaking $@
        @$D/common/scripts/make_dependencies  $(INCLUDE) -B. $(target).cc \
-               > Makefile.dep
+               > $@ \
+         || (rm -f $@ ; false)
        @if test -s $@ ; then : else rm $@ ; fi
 
 
index 910356c898c4405733d8e2996e89245bc3790dcc..5cecab44d4351ffa1ed4b96339d2f4fb1a32234b 100644 (file)
@@ -137,14 +137,13 @@ clean:
 # i.e. whenever one of the cc-/h-files changed. Make detects whether
 # to remake this file upon inclusion at the bottom of this file.
 #
-# If the file should turn out to be empty, then blow it
-# away to let make issue a proper error message rather than
-# some obscure follow-up problems
+# If the creation of Makefile.dep fails, blow it away and fail
 Makefile.dep: $(target).cc Makefile \
               $(shell echo $D/*/include/*/*.h)
        @echo ============================ Remaking $@
        @$D/common/scripts/make_dependencies  $(INCLUDE) -B. $(target).cc \
-               > Makefile.dep
+               > $@ \
+         || (rm -f $@ ; false)
        @if test -s $@ ; then : else rm $@ ; fi
 
 
index 910356c898c4405733d8e2996e89245bc3790dcc..5cecab44d4351ffa1ed4b96339d2f4fb1a32234b 100644 (file)
@@ -137,14 +137,13 @@ clean:
 # i.e. whenever one of the cc-/h-files changed. Make detects whether
 # to remake this file upon inclusion at the bottom of this file.
 #
-# If the file should turn out to be empty, then blow it
-# away to let make issue a proper error message rather than
-# some obscure follow-up problems
+# If the creation of Makefile.dep fails, blow it away and fail
 Makefile.dep: $(target).cc Makefile \
               $(shell echo $D/*/include/*/*.h)
        @echo ============================ Remaking $@
        @$D/common/scripts/make_dependencies  $(INCLUDE) -B. $(target).cc \
-               > Makefile.dep
+               > $@ \
+         || (rm -f $@ ; false)
        @if test -s $@ ; then : else rm $@ ; fi
 
 
index 749b9276bfbb031c86931813d29475828619662d..814371746337123323639ab0e8a81800c97c0840 100644 (file)
@@ -137,14 +137,13 @@ clean:
 # i.e. whenever one of the cc-/h-files changed. Make detects whether
 # to remake this file upon inclusion at the bottom of this file.
 #
-# If the file should turn out to be empty, then blow it
-# away to let make issue a proper error message rather than
-# some obscure follow-up problems
+# If the creation of Makefile.dep fails, blow it away and fail
 Makefile.dep: $(target).cc Makefile \
               $(shell echo $D/*/include/*/*.h)
        @echo ============================ Remaking $@
        @$D/common/scripts/make_dependencies  $(INCLUDE) -B. $(target).cc \
-               > Makefile.dep
+               > $@ \
+         || (rm -f $@ ; false)
        @if test -s $@ ; then : else rm $@ ; fi
 
 
index fac1a71a831b2c416c129f5bdfffbc652c39d3de..076c104225d9cd4a4216bb8ddb3f68564187f950 100644 (file)
@@ -136,14 +136,13 @@ clean:
 # i.e. whenever one of the cc-/h-files changed. Make detects whether
 # to remake this file upon inclusion at the bottom of this file.
 #
-# If the file should turn out to be empty, then blow it
-# away to let make issue a proper error message rather than
-# some obscure follow-up problems
+# If the creation of Makefile.dep fails, blow it away and fail
 Makefile.dep: $(target).cc Makefile \
               $(shell echo $D/*/include/*/*.h)
        @echo ============================ Remaking $@
        @$D/common/scripts/make_dependencies  $(INCLUDE) -B. $(target).cc \
-               > Makefile.dep
+               > $@ \
+         || (rm -f $@ ; false)
        @if test -s $@ ; then : else rm $@ ; fi
 
 
index f74a8d921c8caea5ee0cc44b4e7868b28c8118e3..c7646a06c823cb2f2d3087198b422119ec0032eb 100644 (file)
@@ -156,14 +156,13 @@ clean:
 # i.e. whenever one of the cc-/h-files changed. Make detects whether
 # to remake this file upon inclusion at the bottom of this file.
 #
-# If the file should turn out to be empty, then blow it
-# away to let make issue a proper error message rather than
-# some obscure follow-up problems
+# If the creation of Makefile.dep fails, blow it away and fail
 Makefile.dep: $(target).cc Makefile \
               $(shell echo $D/*/include/*/*.h)
        @echo ============================ Remaking $@
        @$D/common/scripts/make_dependencies  $(INCLUDE) -B. $(target).cc \
-               > Makefile.dep
+               > $@ \
+         || (rm -f $@ ; false)
        @if test -s $@ ; then : else rm $@ ; fi
 
 
index cc6478a4f8723de8ac1dcab07ddaf5a1d1330e90..0cb98b3bbff2303e7540962437e346196ea403f5 100644 (file)
@@ -156,14 +156,13 @@ clean:
 # i.e. whenever one of the cc-/h-files changed. Make detects whether
 # to remake this file upon inclusion at the bottom of this file.
 #
-# If the file should turn out to be empty, then blow it
-# away to let make issue a proper error message rather than
-# some obscure follow-up problems
+# If the creation of Makefile.dep fails, blow it away and fail
 Makefile.dep: $(target).cc Makefile \
               $(shell echo $D/*/include/*/*.h)
        @echo ============================ Remaking $@
        @$D/common/scripts/make_dependencies  $(INCLUDE) -B. $(target).cc \
-               > Makefile.dep
+               > $@ \
+         || (rm -f $@ ; false)
        @if test -s $@ ; then : else rm $@ ; fi
 
 
index 0c8ee3248577dd78b981bb89af7bad2f613dcf31..7a96abe8ae7289cff09ca7737ea918c0305008a4 100644 (file)
@@ -137,14 +137,13 @@ clean:
 # i.e. whenever one of the cc-/h-files changed. Make detects whether
 # to remake this file upon inclusion at the bottom of this file.
 #
-# If the file should turn out to be empty, then blow it
-# away to let make issue a proper error message rather than
-# some obscure follow-up problems
+# If the creation of Makefile.dep fails, blow it away and fail
 Makefile.dep: $(target).cc Makefile \
               $(shell echo $D/*/include/*/*.h)
        @echo ============================ Remaking $@
        @$D/common/scripts/make_dependencies  $(INCLUDE) -B. $(target).cc \
-               > Makefile.dep
+               > $@ \
+         || (rm -f $@ ; false)
        @if test -s $@ ; then : else rm $@ ; fi
 
 
index dbd6066cb6f0abf3840a6e0fa8f0e217a6ddb89b..d7987e467c36f268cd2b594368a6ffa08b8ca42e 100644 (file)
@@ -137,14 +137,13 @@ clean:
 # i.e. whenever one of the cc-/h-files changed. Make detects whether
 # to remake this file upon inclusion at the bottom of this file.
 #
-# If the file should turn out to be empty, then blow it
-# away to let make issue a proper error message rather than
-# some obscure follow-up problems
+# If the creation of Makefile.dep fails, blow it away and fail
 Makefile.dep: $(target).cc Makefile \
               $(shell echo $D/*/include/*/*.h)
        @echo ============================ Remaking $@
        @$D/common/scripts/make_dependencies  $(INCLUDE) -B. $(target).cc \
-               > Makefile.dep
+               > $@ \
+         || (rm -f $@ ; false)
        @if test -s $@ ; then : else rm $@ ; fi
 
 
index ba429f5d42726e4fdd0721ab48c12f3b8d9aeda4..3a6a3a4af6e07ea869456639474573459bc0bc1e 100644 (file)
@@ -139,14 +139,13 @@ clean:
 # i.e. whenever one of the cc-/h-files changed. Make detects whether
 # to remake this file upon inclusion at the bottom of this file.
 #
-# If the file should turn out to be empty, then blow it
-# away to let make issue a proper error message rather than
-# some obscure follow-up problems
+# If the creation of Makefile.dep fails, blow it away and fail
 Makefile.dep: $(target).cc Makefile \
               $(shell echo $D/*/include/*/*.h)
        @echo ============================ Remaking $@
        @$D/common/scripts/make_dependencies  $(INCLUDE) -B. $(target).cc \
-               > Makefile.dep
+               > $@ \
+         || (rm -f $@ ; false)
        @if test -s $@ ; then : else rm $@ ; fi
 
 
index 910356c898c4405733d8e2996e89245bc3790dcc..5cecab44d4351ffa1ed4b96339d2f4fb1a32234b 100644 (file)
@@ -137,14 +137,13 @@ clean:
 # i.e. whenever one of the cc-/h-files changed. Make detects whether
 # to remake this file upon inclusion at the bottom of this file.
 #
-# If the file should turn out to be empty, then blow it
-# away to let make issue a proper error message rather than
-# some obscure follow-up problems
+# If the creation of Makefile.dep fails, blow it away and fail
 Makefile.dep: $(target).cc Makefile \
               $(shell echo $D/*/include/*/*.h)
        @echo ============================ Remaking $@
        @$D/common/scripts/make_dependencies  $(INCLUDE) -B. $(target).cc \
-               > Makefile.dep
+               > $@ \
+         || (rm -f $@ ; false)
        @if test -s $@ ; then : else rm $@ ; fi
 
 
index ba429f5d42726e4fdd0721ab48c12f3b8d9aeda4..3a6a3a4af6e07ea869456639474573459bc0bc1e 100644 (file)
@@ -139,14 +139,13 @@ clean:
 # i.e. whenever one of the cc-/h-files changed. Make detects whether
 # to remake this file upon inclusion at the bottom of this file.
 #
-# If the file should turn out to be empty, then blow it
-# away to let make issue a proper error message rather than
-# some obscure follow-up problems
+# If the creation of Makefile.dep fails, blow it away and fail
 Makefile.dep: $(target).cc Makefile \
               $(shell echo $D/*/include/*/*.h)
        @echo ============================ Remaking $@
        @$D/common/scripts/make_dependencies  $(INCLUDE) -B. $(target).cc \
-               > Makefile.dep
+               > $@ \
+         || (rm -f $@ ; false)
        @if test -s $@ ; then : else rm $@ ; fi
 
 
index 910356c898c4405733d8e2996e89245bc3790dcc..5cecab44d4351ffa1ed4b96339d2f4fb1a32234b 100644 (file)
@@ -137,14 +137,13 @@ clean:
 # i.e. whenever one of the cc-/h-files changed. Make detects whether
 # to remake this file upon inclusion at the bottom of this file.
 #
-# If the file should turn out to be empty, then blow it
-# away to let make issue a proper error message rather than
-# some obscure follow-up problems
+# If the creation of Makefile.dep fails, blow it away and fail
 Makefile.dep: $(target).cc Makefile \
               $(shell echo $D/*/include/*/*.h)
        @echo ============================ Remaking $@
        @$D/common/scripts/make_dependencies  $(INCLUDE) -B. $(target).cc \
-               > Makefile.dep
+               > $@ \
+         || (rm -f $@ ; false)
        @if test -s $@ ; then : else rm $@ ; fi
 
 
index 910356c898c4405733d8e2996e89245bc3790dcc..5cecab44d4351ffa1ed4b96339d2f4fb1a32234b 100644 (file)
@@ -137,14 +137,13 @@ clean:
 # i.e. whenever one of the cc-/h-files changed. Make detects whether
 # to remake this file upon inclusion at the bottom of this file.
 #
-# If the file should turn out to be empty, then blow it
-# away to let make issue a proper error message rather than
-# some obscure follow-up problems
+# If the creation of Makefile.dep fails, blow it away and fail
 Makefile.dep: $(target).cc Makefile \
               $(shell echo $D/*/include/*/*.h)
        @echo ============================ Remaking $@
        @$D/common/scripts/make_dependencies  $(INCLUDE) -B. $(target).cc \
-               > Makefile.dep
+               > $@ \
+         || (rm -f $@ ; false)
        @if test -s $@ ; then : else rm $@ ; fi
 
 
index f9b252c42f26aa49591e2beac20b443d0a856d19..7d656314d9feb9c5b7945f663fc96d6e120ceca5 100644 (file)
@@ -137,14 +137,13 @@ clean:
 # i.e. whenever one of the cc-/h-files changed. Make detects whether
 # to remake this file upon inclusion at the bottom of this file.
 #
-# If the file should turn out to be empty, then blow it
-# away to let make issue a proper error message rather than
-# some obscure follow-up problems
+# If the creation of Makefile.dep fails, blow it away and fail
 Makefile.dep: $(target).cc Makefile \
               $(shell echo $D/*/include/*/*.h)
        @echo ============================ Remaking $@
        @$D/common/scripts/make_dependencies  $(INCLUDE) -B. $(target).cc \
-               > Makefile.dep
+               > $@ \
+         || (rm -f $@ ; false)
        @if test -s $@ ; then : else rm $@ ; fi
 
 
index 910356c898c4405733d8e2996e89245bc3790dcc..5cecab44d4351ffa1ed4b96339d2f4fb1a32234b 100644 (file)
@@ -137,14 +137,13 @@ clean:
 # i.e. whenever one of the cc-/h-files changed. Make detects whether
 # to remake this file upon inclusion at the bottom of this file.
 #
-# If the file should turn out to be empty, then blow it
-# away to let make issue a proper error message rather than
-# some obscure follow-up problems
+# If the creation of Makefile.dep fails, blow it away and fail
 Makefile.dep: $(target).cc Makefile \
               $(shell echo $D/*/include/*/*.h)
        @echo ============================ Remaking $@
        @$D/common/scripts/make_dependencies  $(INCLUDE) -B. $(target).cc \
-               > Makefile.dep
+               > $@ \
+         || (rm -f $@ ; false)
        @if test -s $@ ; then : else rm $@ ; fi
 
 
index 910356c898c4405733d8e2996e89245bc3790dcc..5cecab44d4351ffa1ed4b96339d2f4fb1a32234b 100644 (file)
@@ -137,14 +137,13 @@ clean:
 # i.e. whenever one of the cc-/h-files changed. Make detects whether
 # to remake this file upon inclusion at the bottom of this file.
 #
-# If the file should turn out to be empty, then blow it
-# away to let make issue a proper error message rather than
-# some obscure follow-up problems
+# If the creation of Makefile.dep fails, blow it away and fail
 Makefile.dep: $(target).cc Makefile \
               $(shell echo $D/*/include/*/*.h)
        @echo ============================ Remaking $@
        @$D/common/scripts/make_dependencies  $(INCLUDE) -B. $(target).cc \
-               > Makefile.dep
+               > $@ \
+         || (rm -f $@ ; false)
        @if test -s $@ ; then : else rm $@ ; fi
 
 
index 7d8c45910e43c1d51dab38c057bf8cf1e0e0eb12..7e1e89659f3f18ea908bf73c4cd096a5f87baa9e 100644 (file)
@@ -106,14 +106,12 @@ clean:
 # to remake this file upon inclusion at the bottom
 # of this file.
 #
-# If the file should turn out to be empty, then blow it
-# away to let make issue a proper error message rather than
-# some obscure follow-up problems
+# If the command fails, then remove Makefile.dep again and fail
 Makefile.dep: $(cc-files) $(h-files) Makefile $D/common/Make.global_options
-       @echo ============================ Remaking lac/Makefile
-       @$D/common/scripts/make_dependencies $(INCLUDE) "-B$(LIBDIR)/lac" $(cc-files) \
-               > Makefile.dep
-       @if test -s $@ ; then : else rm $@ ; fi
+       @echo ============================ Remaking base/Makefile
+       @$D/common/scripts/make_dependencies $(INCLUDE) "-B$(LIBDIR)/base" $(cc-files) \
+               > $@ \
+        || (rm -f $@ ; false)
 
 
 # include all the dependencies
index 44ebff7e59bda318b55935b7551499cfc1b49c42..c0288beed3e7f2301b4d6f04c607a646a89ebec4 100644 (file)
@@ -193,7 +193,8 @@ show-tests:
 
 Makefile.depend: $(shell echo *.cc)
        @echo =====Dependencies== $@
-       @$D/common/scripts/make_dependencies $(INCLUDE) $^ > $@
+       @$D/common/scripts/make_dependencies $(INCLUDE) $^ > $@ \
+               || (rm -f $@ ; false)
        @$(PERL) -pi -e 's#\.((g\.)?$(OBJEXT):)#/obj.\1#g;' $@
 
 Makefile.tests: $(shell echo *.cc)

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.