# 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)
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
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)