From: Axel S. <as...@us...> - 2004-10-27 13:21:53
|
Update of /cvsroot/gtk2hs/gtk2hs/mk In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24829/mk Modified Files: chsDepend.in Log Message: Enhance makefile so that it builds the library. Changed .chspp to .chs.cpp in all pre-processed chs files. Build with ghc --make the first time and with ghc -c on incremental changes. Index: chsDepend.in =================================================================== RCS file: /cvsroot/gtk2hs/gtk2hs/mk/chsDepend.in,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- chsDepend.in 21 Jul 2002 16:07:18 -0000 1.5 +++ chsDepend.in 27 Oct 2004 13:21:43 -0000 1.6 @@ -6,6 +6,8 @@ # in the colon-separated search path <searchPath>. SED=@SED@; GREP=@GREP@; +DEPDIR=@DEPDIR@; +DEPDIRSLASH=`if test -n "$DEPDIR"; then echo $DEPDIR/; fi`; SEARCHPATH=.; @@ -20,6 +22,7 @@ for FULLNAME in $@; do FULLNAMEDEP=`echo "$FULLNAME" | $SED 's/\.chs/.dep/'`; FULLNAMEHS=`echo "$FULLNAME" | $SED 's/\.chs/.hs/'`; + TARGETNAMEDEP=$DEPDIRSLASH`basename $FULLNAMEDEP`; if test -f "$FULLNAME"; then DEPS=`$GREP "{#import" $FULLNAME 2> /dev/null | $SED 's/^{#import \([a-zA-Z1-9]*\)#}.*/\1.chs/'`; #echo Looking for dependent files: $DEPS @@ -38,8 +41,8 @@ IFS=$OLDIFS; done; if test -n "$DEPNAMES"; then - echo "$FULLNAMEDEP :" > $FULLNAMEDEP - echo "$FULLNAMEHS : $DEPNAMES" >> $FULLNAMEDEP; + echo "$FULLNAMEDEP :" > $TARGETNAMEDEP; + echo "$FULLNAMEHS : $DEPNAMES" >> $TARGETNAMEDEP; fi; echo Writing dependency information for $FULLNAME else |