2004-05-04 01:01:14 +01:00
|
|
|
BASEDIR=~/lfs-book
|
2004-05-03 11:33:11 +01:00
|
|
|
|
|
|
|
lfs:
|
2004-05-03 21:19:11 +01:00
|
|
|
xsltproc --xinclude --nonet -stringparam base.dir $(BASEDIR)/ \
|
2004-05-03 11:33:11 +01:00
|
|
|
stylesheets/lfs-chunked.xsl index.xml
|
|
|
|
|
2004-05-03 21:19:11 +01:00
|
|
|
if [ ! -e $(BASEDIR)/stylesheets ]; then \
|
|
|
|
mkdir -p $(BASEDIR)/stylesheets; \
|
2004-05-03 11:33:11 +01:00
|
|
|
fi;
|
2004-05-03 21:19:11 +01:00
|
|
|
cp stylesheets/lfs.css $(BASEDIR)/stylesheets
|
2004-05-03 11:33:11 +01:00
|
|
|
|
2004-05-03 21:19:11 +01:00
|
|
|
if [ ! -e $(BASEDIR)/images ]; then \
|
|
|
|
mkdir -p $(BASEDIR)/images; \
|
2004-05-03 11:33:11 +01:00
|
|
|
fi;
|
|
|
|
cp /usr/share/xml/docbook/xsl-stylesheets-1.65.1/images/*.png \
|
2004-05-03 21:19:11 +01:00
|
|
|
$(BASEDIR)/images
|
|
|
|
cd $(BASEDIR)/; sed -i -e "s@../stylesheets@stylesheets@" \
|
2004-05-03 11:33:11 +01:00
|
|
|
index.html part1.html part2.html part3.html longindex.html
|
2004-05-03 21:19:11 +01:00
|
|
|
cd $(BASEDIR)/; sed -i -e "s@../images@images@g" \
|
2004-05-03 11:33:11 +01:00
|
|
|
index.html part1.html part2.html part3.html longindex.html
|
|
|
|
|
|
|
|
pdf:
|
|
|
|
xsltproc --xinclude --nonet --output lfs.fo stylesheets/lfs-pdf.xsl \
|
|
|
|
index.xml
|
|
|
|
sed -i -e "s/inherit/all/" lfs.fo
|
|
|
|
fop.sh lfs.fo lfs.pdf
|
|
|
|
|
|
|
|
validate:
|
|
|
|
xmllint --noout --nonet --xinclude --postvalid index.xml
|