--- MITgcm/tools/genmake2 2004/09/30 16:46:45 1.100 +++ MITgcm/tools/genmake2 2004/10/04 19:00:42 1.103 @@ -1,6 +1,6 @@ #! /usr/bin/env bash # -# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/genmake2,v 1.100 2004/09/30 16:46:45 edhill Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/genmake2,v 1.103 2004/10/04 19:00:42 edhill Exp $ # # Makefile generator for MITgcm UV codes # created by cnh 03/98 @@ -124,10 +124,10 @@ EOF test -f Makefile && mv -f Makefile Makefile.bak cat <> Makefile -%.$tfs : %.F .SUFFIXES: -genmake_hello.$tfs: genmake_hello.F - $LN genmake_hello.F genmake_hello.$tfs +.SUFFIXES: .$tfs .F +.F.$tfs: + $LN \$< \$@ EOF $MAKE "genmake_hello."$tfs > /dev/null 2>&1 RETVAL=$? @@ -861,7 +861,7 @@ echo "none found" fi -# echo "$0::$1:$2:$3:$4:$5:$6:$7:" +#echo "$0::$1:$2:$3:$4:$5:$6:$7:" #OPTIONS= #n=0 #for i ; do @@ -873,7 +873,7 @@ #done #parse_options ac_prev= -for ac_option in $@ ; do +for ac_option in "$@" ; do G2ARGS="$G2ARGS \"$ac_option\"" @@ -1987,7 +1987,8 @@ # The normal chain of rules is ( .F - .$FS - .o ) -%.o : %.F +## This nullifies any default implicit rules concerning these two file types: +## %.o : %.F .F.$FS: \$(CPP) \$(DEFINES) \$(INCLUDES) > \$@