2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / libstdc++-v3 / docs / html / Makefile
bloba0b335aaa2d33039cf66600f9aca774d75fb305f
2 PWD_COMMAND=$${PWDCMD-pwd}
3 MAKEINFO=makeinfo
4 INC=../../../gcc/doc/include
6 all: documentation.html \
7 faq/index.txt \
8 17_intro/confdeps.png \
9 17_intro/porting.html \
10 17_intro/porting-howto.html
12 # chock full of GNUism, probably
13 documentation.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
28 faq/index.txt: faq/index.html
29 lynx -dump $< | sed "s%file://localhost`${PWD_COMMAND}`%..%" > $@
31 17_intro/porting.html: 17_intro/porting.texi
32 ${MAKEINFO} -I ${INC} --html --no-split $< -o $@
34 # known to work under RH; this can be cleaned up later if needed
35 17_intro/porting-howto.html: 17_intro/porting-howto.xml
36 xltproc -o $@ /usr/share/xml/docbook/xsl-stylesheets-1.48-2/html/docbook.xsl $<
38 17_intro/confdeps.png: 17_intro/confdeps.dot
39 dot -Tpng -o $@ $<
41 # vim:noet ts=4