From 45d6ae381d6edf96fc6df557adb738e6dbc2801f Mon Sep 17 00:00:00 2001 From: bangerth Date: Tue, 24 Jul 2012 23:34:42 +0000 Subject: [PATCH] Come up with a test that actually works. git-svn-id: https://svn.dealii.org/trunk@25723 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/deal.II/source/Makefile b/deal.II/source/Makefile index 0877d7e842..f9a5068ee1 100644 --- a/deal.II/source/Makefile +++ b/deal.II/source/Makefile @@ -219,11 +219,15 @@ include Makefile.dep # If the command fails, then remove Makefile.dep again and fail %/Makefile.dep: @echo "===================================== Remaking $@" - @(($D/common/scripts/make_dependencies -n $(INCLUDE) "-B\$$(LIBDIR)" \ + @$D/common/scripts/make_dependencies -n $(INCLUDE) "-B\$$(LIBDIR)" \ $(filter $D/source/$(dir $@)%, $(cc-files)) \ - | $(PERL) -pe 's!LIBDIR\)/(debug|optimized)/(.*):!LIBDIR)/$$1/$(@:%/Makefile.dep=%)_$$2:!g;' \ - ) > $@) \ - || (rm -f $@ ; false) + | $(PERL) -pe 's!LIBDIR\)/(debug|optimized)/(.*):!LIBDIR)/$$1/$(@:%/Makefile.dep=%)_$$2:!g;' \ + > $@ + @if test ! -s $@ ; then \ + echo "*** make_dependencies failed to produce a valid file $@" ; \ + rm $@ ; \ + false ; \ + fi # include all the dependencies -- 2.39.5