6.0
Line | |
---|
1 | BASEDIR=/home/macana/tmp/test-book-LFS/
|
---|
2 |
|
---|
3 | lfs:
|
---|
4 | xsltproc --xinclude --nonet --stringparam base.dir $(BASEDIR) \
|
---|
5 | stylesheets/lfs-chunked.xsl index.xml
|
---|
6 |
|
---|
7 | mkdir -p $(BASEDIR)stylesheets && \
|
---|
8 | cp stylesheets/*.css $(BASEDIR)stylesheets
|
---|
9 |
|
---|
10 | mkdir -p $(BASEDIR)images && \
|
---|
11 | cp /usr/share/xml/docbook/xsl-stylesheets-1.65.1/images/*.png \
|
---|
12 | $(BASEDIR)images
|
---|
13 |
|
---|
14 | cd $(BASEDIR); sed -i -e "s@../stylesheets@stylesheets@g" \
|
---|
15 | *.html
|
---|
16 | cd $(BASEDIR); sed -i -e "s@../images@images@g" \
|
---|
17 | *.html
|
---|
18 |
|
---|
19 | cd $(BASEDIR); goTidy
|
---|
20 |
|
---|
21 | pdf:
|
---|
22 | xsltproc --xinclude --nonet --stringparam profile.condition print --output $(BASEDIR)lfs-pdf.xml \
|
---|
23 | stylesheets/lfs-profile.xsl index.xml
|
---|
24 | xsltproc --nonet --output $(BASEDIR)lfs-pdf.fo stylesheets/lfs-pdf.xsl $(BASEDIR)lfs-pdf.xml
|
---|
25 | cd $(BASEDIR); sed -i -e "s@inherit@all@" lfs-pdf.fo
|
---|
26 | cd $(BASEDIR); JAVA_HOME=/opt/java/jre1.3.1_02 FOP_HOME=/home/macana/tmp/fop \
|
---|
27 | /home/macana/tmp/fop/fop.sh lfs-pdf.fo lfs-pdf.pdf
|
---|
28 |
|
---|
29 | nochunks:
|
---|
30 | xsltproc --xinclude --nonet --output $(BASEDIR)lfs-nochunk.html \
|
---|
31 | stylesheets/lfs-nochunks.xsl index.xml
|
---|
32 | tidy -config tidy.conf $(BASEDIR)lfs-nochunk.html || true
|
---|
33 |
|
---|
34 | validate:
|
---|
35 | xmllint --noout --nonet --xinclude --postvalid index.xml
|
---|
36 |
|
---|
37 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.