2000-11-29 21:37:02 +01:00
|
|
|
|
2003-07-04 21:45:55 +02:00
|
|
|
PWD_COMMAND=$${PWDCMD-pwd}
|
2001-11-06 01:18:37 +01:00
|
|
|
MAKEINFO=makeinfo
|
|
|
|
INC=../../../gcc/doc/include
|
|
|
|
|
2002-09-01 02:33:53 +02:00
|
|
|
all: documentation.html \
|
|
|
|
faq/index.txt \
|
2003-08-05 03:20:15 +02:00
|
|
|
17_intro/confdeps.png \
|
2002-09-01 02:33:53 +02:00
|
|
|
17_intro/porting.html \
|
|
|
|
17_intro/porting-howto.html
|
2001-11-06 01:18:37 +01:00
|
|
|
|
2002-09-01 02:33:53 +02:00
|
|
|
# chock full of GNUism, probably
|
|
|
|
documentation.html: $(wildcard */howto.html)
|
|
|
|
sed -n '1,/beginlist/p' $@ > tmp.top
|
|
|
|
sed -n '/endlist/,$$p' $@ > tmp.bottom
|
|
|
|
echo ' <ul>' > tmp.middle
|
Makefile: Use more portable shell wildcard.
2002-09-05 Jonathan Wakely <jw@kayari.org>
* docs/html/Makefile: Use more portable shell wildcard.
* docs/html/makedoc.awk: Nest elements correctly for XHTML conversion.
* docs/html/configopts.html, docs/html/documentation.html,
docs/html/explanations.html, docs/html/install.html,
docs/html/17_intro/contribute.html, docs/html/17_intro/howto.html,
docs/html/17_intro/license.html, docs/html/18_support/howto.html,
docs/html/19_diagnostics/howto.html, docs/html/20_util/howto.html,
docs/html/21_strings/howto.html, docs/html/22_locale/codecvt.html,
docs/html/22_locale/ctype.html, docs/html/22_locale/howto.html,
docs/html/22_locale/locale.html, docs/html/22_locale/messages.html,
docs/html/23_containers/howto.html, docs/html/24_iterators/howto.html,
docs/html/25_algorithms/howto.html, docs/html/26_numerics/howto.html,
docs/html/27_io/howto.html, docs/html/ext/howto.html,
docs/html/ext/sgiexts.html, docs/html/faq/index.html: Convert
to XHTML.
* docs/html/faq/index.txt: Regenerate.
From-SVN: r56845
2002-09-05 17:47:54 +02:00
|
|
|
for i in [0-9]*/howto.html; do \
|
2002-09-01 02:33:53 +02:00
|
|
|
title=`grep 'h1 ' $$i |\
|
|
|
|
sed 's=.*\(Chapter [[:digit:]]*\):[[:space:]]*\(.*\)</a>.*=\2 (\1)='` ;\
|
|
|
|
awk -v file=$$i -v "title=$$title" -f makedoc.awk $$i >> tmp.middle ;\
|
|
|
|
done
|
|
|
|
awk -v file=ext/howto.html -v "title=Extensions to the Standard Library"\
|
|
|
|
-f makedoc.awk ext/howto.html >> tmp.middle ;\
|
|
|
|
echo ' </ul>' >> tmp.middle
|
|
|
|
cat tmp.top tmp.middle tmp.bottom > $@
|
|
|
|
rm tmp.top tmp.middle tmp.bottom
|
2000-11-29 21:37:02 +01:00
|
|
|
|
|
|
|
faq/index.txt: faq/index.html
|
2003-07-04 21:45:55 +02:00
|
|
|
lynx -dump $< | sed "s%file://localhost`${PWD_COMMAND}`%..%" > $@
|
2001-11-06 01:18:37 +01:00
|
|
|
|
|
|
|
17_intro/porting.html: 17_intro/porting.texi
|
|
|
|
${MAKEINFO} -I ${INC} --html --no-split $< -o $@
|
2000-11-29 21:37:02 +01:00
|
|
|
|
2002-03-06 22:22:56 +01:00
|
|
|
# known to work under RH; this can be cleaned up later if needed
|
|
|
|
17_intro/porting-howto.html: 17_intro/porting-howto.xml
|
|
|
|
xltproc -o $@ /usr/share/xml/docbook/xsl-stylesheets-1.48-2/html/docbook.xsl $<
|
|
|
|
|
2003-08-05 03:20:15 +02:00
|
|
|
17_intro/confdeps.png: 17_intro/confdeps.dot
|
|
|
|
dot -Tpng -o $@ $<
|
|
|
|
|
2002-09-01 02:33:53 +02:00
|
|
|
# vim:noet ts=4
|