From 050b91adb5e4a94666f5edcd0baf13299e68f521 Mon Sep 17 00:00:00 2001 From: wolf Date: Wed, 30 Apr 2003 16:05:27 +0000 Subject: [PATCH] Link gcc3.2 output files into the icc7.1 directory. git-svn-id: https://svn.dealii.org/trunk@7505 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/results/Makefile | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/tests/results/Makefile b/tests/results/Makefile index d81ffb875f..36d6ca0745 100644 --- a/tests/results/Makefile +++ b/tests/results/Makefile @@ -4,7 +4,24 @@ all: .links -.links: + +# if one calls link-TARGET-to-SOURCE, then it looks into the target +# directory, and for each output file it does not find there but in +# the source directory, it creates a link from the source to the +# target directory. This way, one has only to store the files that +# differ and cross-link all the other files. +link-%: + @TARGET=`echo $@ | $(PERL) -pi -e 's/link-//; s/-to-.*//;'` ; \ + SOURCE=`echo $@ | $(PERL) -pi -e 's/.*-to-//;'` ; \ + cd $$SOURCE ; \ + for i in */*output ; do \ + if test ! -f ../$$TARGET/$$i ; then \ + ln -s $$i ../$$TARGET/$$i ; \ + fi ; \ + done + + +.links: link-i686-pc-linux-gnu+icc7.1-to-i686-pc-linux-gnu+gcc3.2 ln -s sparc-sun-solaris2.7+gcc2.95 sparc-sun-solaris2.8+gcc2.95 ln -s sparc-sun-solaris2.7+gcc2.95 sparc-sun-solaris2.9+gcc2.95 (cd i686-pc-linux-gnu+gcc2.95; sh .link) @@ -14,4 +31,7 @@ clean: (cd i686-pc-linux-gnu+gcc2.95; sh .unlink) rm sparc-sun-solaris2.8+gcc2.95 rm sparc-sun-solaris2.9+gcc2.95 - rm .links \ No newline at end of file + rm .links + + +include ../../common/Make.global_options \ No newline at end of file -- 2.39.5