+# update/generate references
+
+refs: refs-base refs-lac refs-fe refs-deal.II refs-bits
+
+refs-base: abort.o
+ cd base ; $(MAKE) refs
+
+refs-lac: abort.o
+ cd lac ; $(MAKE) refs
+
+refs-fe: abort.o
+ cd fe ; $(MAKE) refs
+
+refs-bits: abort.o
+ cd bits ; $(MAKE) refs
+
+refs-deal.II: abort.o
+ cd deal.II ; $(MAKE) refs
+
+refs-multigrid: abort.o
+ cd multigrid ; $(MAKE) refs
+
+
resultname:
@echo $(TARGET)+$(GXX-VERSION)
@rm testresults
+############################################################
+# Generating references: Useful when creating references for
+# a new platform or when updating several non-generic
+# references.
+############################################################
+
+
+%/ref : %/output
+ @$(PERL) -pi $(normalize) $<
+ @for i in $(PLATFORM-HIERARCHY) ; do \
+ testname=$(<:%/output=%) ; \
+ if test -f $$testname/cmp/$$i ; then \
+ cmd="diff -w $< $$testname/cmp/$$i > /dev/null" ; \
+ if eval ! $$cmd ; then \
+ echo '=====Creating======' $$testname/cmp/$(PLATFORM) ; \
+ cp $$testname/output $$testname/cmp/$(PLATFORM); \
+ fi ; \
+ break ; \
+ fi ; \
+ done
+
+
############################################################
# After all these general rules, here is the target to be
# executed by make: for each entry in the list $(tests)
build: $(tests:%=%/exe)
+refs: $(tests:%=%/ref)
+
############################################################
# Link and copy files in ./results/* to generate checked
# checked files for new hardware/compiler platform.
> $@
-.PHONY: report show-tests clean distclean
+.PHONY: report show-tests clean distclean %/ref
subdirs:
for i in $(tests) ; do \