1 2PWD_COMMAND=$${PWDCMD-pwd} 3MAKEINFO=makeinfo 4INC=../../../gcc/doc/include 5 6all: documentation.html \ 7 faq/index.txt \ 8 17_intro/confdeps.png \ 9 17_intro/porting.html \ 10 17_intro/porting-howto.html 11 12# chock full of GNUism, probably 13documentation.html: $(wildcard */howto.html) 14 sed -n '1,/beginlist/p' $@ > tmp.top 15 sed -n '/endlist/,$$p' $@ > tmp.bottom 16 echo ' <ul>' > tmp.middle 17 for i in [0-9]*/howto.html; do \ 18 title=`grep 'h1 ' $$i |\ 19 sed 's=.*\(Chapter [[:digit:]]*\):[[:space:]]*\(.*\)</a>.*=\2 (\1)='` ;\ 20 awk -v file=$$i -v "title=$$title" -f makedoc.awk $$i >> tmp.middle ;\ 21 done 22 awk -v file=ext/howto.html -v "title=Extensions to the Standard Library"\ 23 -f makedoc.awk ext/howto.html >> tmp.middle ;\ 24 echo ' </ul>' >> tmp.middle 25 cat tmp.top tmp.middle tmp.bottom > $@ 26 rm tmp.top tmp.middle tmp.bottom 27 28faq/index.txt: faq/index.html 29 lynx -dump $< | sed "s%file://localhost`${PWD_COMMAND}`%..%" > $@ 30 3117_intro/porting.html: 17_intro/porting.texi 32 ${MAKEINFO} -I ${INC} --html --no-split $< -o $@ 33 34# known to work under RH; this can be cleaned up later if needed 3517_intro/porting-howto.html: 17_intro/porting-howto.xml 36 xltproc -o $@ /usr/share/xml/docbook/xsl-stylesheets-1.48-2/html/docbook.xsl $< 37 3817_intro/confdeps.png: 17_intro/confdeps.dot 39 dot -Tpng -o $@ $< 40 41# vim:noet ts=4 42