2000-11-30 04:37:02 +08:00
|
|
|
|
2002-09-01 08:33:53 +08:00
|
|
|
PWD=$${PWDCMD-pwd}
|
2001-11-06 08:18:37 +08:00
|
|
|
MAKEINFO=makeinfo
|
|
|
|
INC=../../../gcc/doc/include
|
|
|
|
|
2002-09-01 08:33:53 +08:00
|
|
|
all: documentation.html \
|
|
|
|
faq/index.txt \
|
|
|
|
17_intro/porting.html \
|
|
|
|
17_intro/porting-howto.html
|
2001-11-06 08:18:37 +08:00
|
|
|
|
2002-09-01 08:33:53 +08: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
|
|
|
|
for i in [[:digit:]]*/howto.html; do \
|
|
|
|
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-30 04:37:02 +08:00
|
|
|
|
|
|
|
faq/index.txt: faq/index.html
|
2002-05-17 01:43:21 +08:00
|
|
|
lynx -dump $< | sed "s%file://localhost`${PWD}`%..%" > $@
|
2001-11-06 08:18:37 +08:00
|
|
|
|
|
|
|
17_intro/porting.html: 17_intro/porting.texi
|
|
|
|
${MAKEINFO} -I ${INC} --html --no-split $< -o $@
|
2000-11-30 04:37:02 +08:00
|
|
|
|
2002-03-07 05:22:56 +08: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 $<
|
|
|
|
|
2002-09-01 08:33:53 +08:00
|
|
|
# vim:noet ts=4
|