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