#see the Makefile of the deal.II directory for a thorough
#description of what happens here
../lib/Makefile.dep: $(cc-files) $(forward-declarations) $(h-files) Makefile
-ifeq (0,${MAKELEVEL})
+ifneq (1,${recursive-make-fwd-decl})
@echo ============================ Remaking Makefile
@perl ../Make_dep.pl ../lib/liblac $(INCLUDE) $(cc-files) \
> ../lib/Makefile.dep
# copy over the file if necessary.
# - delete the two temporary files
$(forward-declarations): $(filter-out %forward-declarations%,$(h-files))
-ifeq (0,${MAKELEVEL})
+ifneq (1,${recursive-make-fwd-decl})
@echo ============================ Checking $@
@touch $@.old
-@cp $@ $@.old > /dev/null 2>&1
@perl $D/deal.II/Make_forward_declarations $(filter-out %forward-declarations.h,$(h-files)) > $@.new
- @make --silent $@
+ @make --silent recursive-make-fwd-decl=1 $@
@rm $@.old $@.new
else
ifneq (,$(shell diff $(forward-declarations).old $(forward-declarations).new))
#critical case, we need to add it by hand. next problem:
#the generation of the forward declarations requires a
#nested call to 'make', which would then rebuild the
-#Makefile.dep, which this rule won't see, wo we end up
+#Makefile.dep, which this rule won't see, so we end up
#generating it twice. therefore: do nothing if in a nested
#make
../lib/Makefile.dep: $(cc-files) $(h-files) $(forward-declarations) Makefile ../Make.global_options
-ifeq (0,${MAKELEVEL})
+ifneq (1,${recursive-make-fwd-decl})
@echo ============================ Remaking Makefile
@echo "# This Makefile was automatically generated by ../source/Makefile" \
> ../lib/Makefile.dep
#see the Makefile of the deal.II directory for a thorough
#description of what happens here
../lib/Makefile.dep: $(cc-files) $(forward-declarations) $(h-files) Makefile
-ifeq (0,${MAKELEVEL})
+ifneq (1,${recursive-make-fwd-decl})
@echo ============================ Remaking Makefile
@perl ../Make_dep.pl ../lib/liblac $(INCLUDE) $(cc-files) \
> ../lib/Makefile.dep