From 4cf1e2ca9188f81091e5164c5dadd76021db3c52 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 23 Nov 2005 15:54:25 +0000 Subject: [PATCH] If the creation of the Makefile.dep file fails, we are left with no rules to create object files, and weird and unintelligible errors will follow. Try to be a little more graceful, by a) blowing away any file that might have been attempted to be created, and b) fail the makefile command. git-svn-id: https://svn.dealii.org/trunk@11779 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/Makefile | 8 +++----- deal.II/deal.II/Makefile | 8 +++----- deal.II/examples/doxygen/Makefile | 7 +++---- deal.II/examples/step-1/Makefile | 7 +++---- deal.II/examples/step-10/Makefile | 7 +++---- deal.II/examples/step-11/Makefile | 7 +++---- deal.II/examples/step-12/Makefile | 7 +++---- deal.II/examples/step-13/Makefile | 7 +++---- deal.II/examples/step-14/Makefile | 7 +++---- deal.II/examples/step-15/Makefile | 7 +++---- deal.II/examples/step-16/Makefile | 7 +++---- deal.II/examples/step-17/Makefile | 7 +++---- deal.II/examples/step-18/Makefile | 7 +++---- deal.II/examples/step-19/Makefile | 7 +++---- deal.II/examples/step-2/Makefile | 7 +++---- deal.II/examples/step-20/Makefile | 7 +++---- deal.II/examples/step-3/Makefile | 7 +++---- deal.II/examples/step-4/Makefile | 7 +++---- deal.II/examples/step-5/Makefile | 7 +++---- deal.II/examples/step-6/Makefile | 7 +++---- deal.II/examples/step-7/Makefile | 7 +++---- deal.II/examples/step-8/Makefile | 7 +++---- deal.II/examples/step-9/Makefile | 7 +++---- deal.II/lac/Makefile | 12 +++++------- tests/Makefile.rules | 3 ++- 25 files changed, 76 insertions(+), 102 deletions(-) diff --git a/deal.II/base/Makefile b/deal.II/base/Makefile index 951601f949..63e13f0e0a 100644 --- a/deal.II/base/Makefile +++ b/deal.II/base/Makefile @@ -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) diff --git a/deal.II/deal.II/Makefile b/deal.II/deal.II/Makefile index 2b5653fde0..21a5fb8d11 100644 --- a/deal.II/deal.II/Makefile +++ b/deal.II/deal.II/Makefile @@ -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 diff --git a/deal.II/examples/doxygen/Makefile b/deal.II/examples/doxygen/Makefile index 89776fff91..6ea5575bf6 100644 --- a/deal.II/examples/doxygen/Makefile +++ b/deal.II/examples/doxygen/Makefile @@ -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 diff --git a/deal.II/examples/step-1/Makefile b/deal.II/examples/step-1/Makefile index 45cd049a62..8659d7278b 100644 --- a/deal.II/examples/step-1/Makefile +++ b/deal.II/examples/step-1/Makefile @@ -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 diff --git a/deal.II/examples/step-10/Makefile b/deal.II/examples/step-10/Makefile index 8350f94975..53690d1f96 100644 --- a/deal.II/examples/step-10/Makefile +++ b/deal.II/examples/step-10/Makefile @@ -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 diff --git a/deal.II/examples/step-11/Makefile b/deal.II/examples/step-11/Makefile index 910356c898..5cecab44d4 100644 --- a/deal.II/examples/step-11/Makefile +++ b/deal.II/examples/step-11/Makefile @@ -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 diff --git a/deal.II/examples/step-12/Makefile b/deal.II/examples/step-12/Makefile index 910356c898..5cecab44d4 100644 --- a/deal.II/examples/step-12/Makefile +++ b/deal.II/examples/step-12/Makefile @@ -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 diff --git a/deal.II/examples/step-13/Makefile b/deal.II/examples/step-13/Makefile index 910356c898..5cecab44d4 100644 --- a/deal.II/examples/step-13/Makefile +++ b/deal.II/examples/step-13/Makefile @@ -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 diff --git a/deal.II/examples/step-14/Makefile b/deal.II/examples/step-14/Makefile index 910356c898..5cecab44d4 100644 --- a/deal.II/examples/step-14/Makefile +++ b/deal.II/examples/step-14/Makefile @@ -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 diff --git a/deal.II/examples/step-15/Makefile b/deal.II/examples/step-15/Makefile index 749b9276bf..8143717463 100644 --- a/deal.II/examples/step-15/Makefile +++ b/deal.II/examples/step-15/Makefile @@ -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 diff --git a/deal.II/examples/step-16/Makefile b/deal.II/examples/step-16/Makefile index fac1a71a83..076c104225 100644 --- a/deal.II/examples/step-16/Makefile +++ b/deal.II/examples/step-16/Makefile @@ -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 diff --git a/deal.II/examples/step-17/Makefile b/deal.II/examples/step-17/Makefile index f74a8d921c..c7646a06c8 100644 --- a/deal.II/examples/step-17/Makefile +++ b/deal.II/examples/step-17/Makefile @@ -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 diff --git a/deal.II/examples/step-18/Makefile b/deal.II/examples/step-18/Makefile index cc6478a4f8..0cb98b3bbf 100644 --- a/deal.II/examples/step-18/Makefile +++ b/deal.II/examples/step-18/Makefile @@ -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 diff --git a/deal.II/examples/step-19/Makefile b/deal.II/examples/step-19/Makefile index 0c8ee32485..7a96abe8ae 100644 --- a/deal.II/examples/step-19/Makefile +++ b/deal.II/examples/step-19/Makefile @@ -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 diff --git a/deal.II/examples/step-2/Makefile b/deal.II/examples/step-2/Makefile index dbd6066cb6..d7987e467c 100644 --- a/deal.II/examples/step-2/Makefile +++ b/deal.II/examples/step-2/Makefile @@ -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 diff --git a/deal.II/examples/step-20/Makefile b/deal.II/examples/step-20/Makefile index ba429f5d42..3a6a3a4af6 100644 --- a/deal.II/examples/step-20/Makefile +++ b/deal.II/examples/step-20/Makefile @@ -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 diff --git a/deal.II/examples/step-3/Makefile b/deal.II/examples/step-3/Makefile index 910356c898..5cecab44d4 100644 --- a/deal.II/examples/step-3/Makefile +++ b/deal.II/examples/step-3/Makefile @@ -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 diff --git a/deal.II/examples/step-4/Makefile b/deal.II/examples/step-4/Makefile index ba429f5d42..3a6a3a4af6 100644 --- a/deal.II/examples/step-4/Makefile +++ b/deal.II/examples/step-4/Makefile @@ -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 diff --git a/deal.II/examples/step-5/Makefile b/deal.II/examples/step-5/Makefile index 910356c898..5cecab44d4 100644 --- a/deal.II/examples/step-5/Makefile +++ b/deal.II/examples/step-5/Makefile @@ -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 diff --git a/deal.II/examples/step-6/Makefile b/deal.II/examples/step-6/Makefile index 910356c898..5cecab44d4 100644 --- a/deal.II/examples/step-6/Makefile +++ b/deal.II/examples/step-6/Makefile @@ -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 diff --git a/deal.II/examples/step-7/Makefile b/deal.II/examples/step-7/Makefile index f9b252c42f..7d656314d9 100644 --- a/deal.II/examples/step-7/Makefile +++ b/deal.II/examples/step-7/Makefile @@ -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 diff --git a/deal.II/examples/step-8/Makefile b/deal.II/examples/step-8/Makefile index 910356c898..5cecab44d4 100644 --- a/deal.II/examples/step-8/Makefile +++ b/deal.II/examples/step-8/Makefile @@ -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 diff --git a/deal.II/examples/step-9/Makefile b/deal.II/examples/step-9/Makefile index 910356c898..5cecab44d4 100644 --- a/deal.II/examples/step-9/Makefile +++ b/deal.II/examples/step-9/Makefile @@ -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 diff --git a/deal.II/lac/Makefile b/deal.II/lac/Makefile index 7d8c45910e..7e1e89659f 100644 --- a/deal.II/lac/Makefile +++ b/deal.II/lac/Makefile @@ -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 diff --git a/tests/Makefile.rules b/tests/Makefile.rules index 44ebff7e59..c0288beed3 100644 --- a/tests/Makefile.rules +++ b/tests/Makefile.rules @@ -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) -- 2.39.5