]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Target check added
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 11 May 1999 15:55:35 +0000 (15:55 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 11 May 1999 15:55:35 +0000 (15:55 +0000)
git-svn-id: https://svn.dealii.org/trunk@1313 0785d39b-7218-0410-832d-ea1e28bc413d

tests/fe/Makefile

index 7f0e750bd506b59747cbd4c5da98df282740ee60..374e9f16788f0d1b4f6477417dc0aa61d8745c3a 100644 (file)
@@ -41,7 +41,7 @@ libraries = $(libs)
 flags     = $(CXXFLAGS.o) $(CXXFLAGS)
 endif
 
-all: show_transform show_shapes
+all: check
 
 ############################################################
 # Typical block for building a running program
@@ -84,8 +84,21 @@ show_transform: $(show_transform-o-files) $(libraries)
 # Continue with other targets if needed
 ############################################################
 
+check: show_transform show_shapes
+       @echo Running programs
+       @show_transform
+       @show_shapes
+       @echo Checking results
+       $(MAKE) dodiff
 
+%.check: %.dat
+       diff $@ $<
 
+dat = $(wildcard *.dat)
+check = $(dat:.dat=.check)
+
+dodiff: $(check)
+       @echo OK
 
 ############################################################
 # Cleanup targets
@@ -109,3 +122,5 @@ Make.depend: $(all-cc-files)
        @perl -pi~ -e 's/(^[^.]+)\.o:/\1.o \1.go:/;' $@
 
 include Make.depend
+
+.PHONY: clean veryclean check

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.