# -*- indent-tabs-mode: t -*- <../mk.$USER GC=gc-grading.html COURSE=152 OTHERS= UNITS=scheme gc ml typesys lambda ml-inf ml-code prolog clu small small-code sml sem prolog HTML=$UNITS m3 small regexp UNITREGEXP=`echo $UNITS | sed 's/ /|/g'` UNITHW=${UNITS:%=%.html} HTMLREGEXP=`echo $HTML | sed 's/ /|/g'` HTMLHW=${HTML:%=%.html} TEXFIGS=while lamtrue lam1st TEXFIGSREGEXP=`echo $TEXFIGS | sed 's/ /|/g'` GIF=${TEXFIGS:%=%.gif} BUILTINS= LATEX=latex OLD_OBSOLETE_TARGETS=naming.html all:V: html src ps %: %.icn icont -o $target $prereq GCREGEXP=`echo $GC | sed 's/ /|/g;s/.html//g'` ^($HTMLREGEXP)'\.'html'$':RD: '\1'.nw noweave -n -x -html $prereq > $target lambda.html:D: lambda.nw noweave -n -html $prereq > $target ^($GCREGEXP)'\.'html'$':R: '\1'.nw noweave -html -n $prereq > $target %.ascii:D: %.html html2ascii $prereq > $target &.ps:D: &.html html2ps $prereq $target html:V: $GC $UNITHW mlsample.html $GIF $HTMLHW ps:V: intro-15.ps src:V: scheme1.p ascii:V: gc.ascii gc-stats.ascii sml.html:D: sml.nw noweave -autodefs sml -n -html -index $prereq > $target mlsample.html:D: ml.nw (cat << EOF
EOF notangle -Rsample $prereq | sed 's/</g' echo "") > $target %.dvi: %.tex $LATEX '\scrollmode \input '"$stem" ltxcount=3 while egrep -s 'Rerun (LaTeX|to get cross-references right)' $stem.log && [ $ltxcount -gt 0 ] do $LATEX '\scrollmode \input '"$stem" ltxcount=`expr $ltxcount - 1` done '^('$TEXFIGSREGEXP')\.ps$':R: '\1.dvi' dvips -E -o $target -x 1440 $prereq '^('$TEXFIGSREGEXP')\.gif$':R: '\1.ps' pstopbm -border 0 $prereq | ppmtogif | giftool -rgb white > $target regexp.sml:D: regexp.nw notangle -R$target $prereq > $target rtest: regexp.sml mosmlc -c $prereq clean:V: rm -f *~ rm -f *.aux *.dvi *.log *.toc rm -f clu.ps while.ps rm -f randsort rm -f scheme1.ps rm -f scheme1.tex # don't remove clu.tex! clobber:V: clean rm -f $GIF rm -f clu.html rm -f lambda.html m3.html ml-code.html rm -f ml.html naming.html prolog.html scheme1.html sem.html rm -f small-code.html sml.html