From: Duncan C. <dun...@us...> - 2005-02-26 02:03:18
|
Update of /cvsroot/gtk2hs/gtk2hs/mk In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1449/mk Modified Files: chsDepend.in Log Message: Signal.chs-boot1: add #hide Haddock annotation so the Signal module will not appear in the generated docs. Makefile.am: It is useful to have a seperate variable holding the files that are generated from nothing using code generators so define a GENERATEDSOURCES variable for each package and re-define some other variables in terms of that. We use it to define nodist_*_SOURCES and html_HSFILES_HIDDEN for each package (since all the generated files are hidden). Instead of having each packages .dep files depending on all of the packages .chs file (which causes lots of unnecessary invocations of chsDepend) make them just depend on the .chs files that might not exist which are the ones produced by code generators. So make them depend on the GENERATEDSOURCES files. chsDepend.in: since we no longer make the .dep files depend on every .chs file in sight, the .chs file (produced from the .chs.pp file) might not exist when the .dep file is generated so look for .chs.pp files as well as .chs file when calculating the deps. This is possibly a bit of a hack. Index: chsDepend.in =================================================================== RCS file: /cvsroot/gtk2hs/gtk2hs/mk/chsDepend.in,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- chsDepend.in 16 Jan 2005 21:25:57 -0000 1.13 +++ chsDepend.in 26 Feb 2005 02:03:04 -0000 1.14 @@ -33,7 +33,7 @@ for DEPDIR in $SEARCHPATH; do DEPNAME=`echo "$DEPDIR/$DEP" | $SED 's%\.//*%%'`; #echo Looking for $DEP in $DEPDIR , i.e.: $DEPNAME - if test -f "$DEPNAME.chs"; then + if test -f "$DEPNAME.chs" -o -f "$DEPNAME.chs.pp"; then #echo Found $DEP in $DEPDIR DEPNAMES="$DEPNAMES $DEPNAME.chi"; FOUND=yes; |