From: wolf Date: Wed, 30 Apr 2003 16:41:02 +0000 (+0000) Subject: Link gcc3.4 to gcc3.2. Simplify structure a little. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5641b948769600c159f0a5701a4c079317999887;p=dealii-svn.git Link gcc3.4 to gcc3.2. Simplify structure a little. git-svn-id: https://svn.dealii.org/trunk@7507 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/results/Makefile b/tests/results/Makefile index 36d6ca0745..4345608d9f 100644 --- a/tests/results/Makefile +++ b/tests/results/Makefile @@ -5,32 +5,42 @@ all: .links -# if one calls link-TARGET-to-SOURCE, then it looks into the target +# if one calls linkfiles-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-.*//;'` ; \ +linkfiles-%: + @TARGET=`echo $@ | $(PERL) -pi -e 's/linkfiles-//; s/-to-.*//;'` ; \ SOURCE=`echo $@ | $(PERL) -pi -e 's/.*-to-//;'` ; \ cd $$SOURCE ; \ for i in */*output ; do \ if test ! -f ../$$TARGET/$$i ; then \ + if test -L ../$$TARGET/$$i ; then \ + rm ../$$TARGET/$$i ; \ + fi ; \ 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 +# if called with linksdirs-TARGET-to-SOURCE, creates a link from the source +# directory to the target directory +linkdirs-%: + @TARGET=`echo $@ | $(PERL) -pi -e 's/linkfiles-//; s/-to-.*//;'` ; \ + SOURCE=`echo $@ | $(PERL) -pi -e 's/.*-to-//;'` ; \ + if test -L $$TARGET ; then rm $$TARGET ; fi ; \ + ln -s $$SOURCE $$TARGET + +.links: linkfiles-i686-pc-linux-gnu+icc7.1-to-i686-pc-linux-gnu+gcc3.2 \ + linkfiles-i686-pc-linux-gnu+gcc3.4-to-i686-pc-linux-gnu+gcc3.2 \ + linkdirs-sparc-sun-solaris2.8+gcc2.95-to-sparc-sun-solaris2.7+gcc2.95 \ + linkdirs-sparc-sun-solaris2.9+gcc2.95-to-sparc-sun-solaris2.7+gcc2.95 (cd i686-pc-linux-gnu+gcc2.95; sh .link) touch .links 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