10.0
10.1
11.0
11.1
11.2
11.3
12.0
12.1
6.0
6.1
6.2
6.2.0
6.2.0-rc1
6.2.0-rc2
6.3
6.3-rc1
6.3-rc2
6.3-rc3
7.10
7.4
7.5
7.6
7.6-blfs
7.6-systemd
7.7
7.8
7.9
8.0
8.1
8.2
8.3
8.4
9.0
9.1
basic
bdubbs/svn
elogind
gnome
kde5-13430
kde5-14269
kde5-14686
kea
ken/TL2024
ken/inkscape-core-mods
ken/tuningfonts
krejzi/svn
lazarus
lxqt
nosym
perl-modules
plabs/newcss
plabs/python-mods
python3.11
qt5new
rahul/power-profiles-daemon
renodr/vulkan-addition
systemd-11177
systemd-13485
trunk
upgradedb
v5_1
v5_1-pre1
xry111/intltool
xry111/llvm18
xry111/soup3
xry111/test-20220226
xry111/xf86-video-removal
Last change
on this file since eff3826 was eff3826, checked in by Larry Lawrence <larry@…>, 20 years ago |
Added stylesheets for xsltproc processing
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1984 af4574ff-66df-0310-9fd7-8a98e5e911e0
|
-
Property mode
set to
100644
|
File size:
1.4 KB
|
Rev | Line | |
---|
[19599c63] | 1 | # Makefile for BLFS Book generation.
|
---|
| 2 | # By Tushar Teredesai <tushar@linuxfromscratch.org>
|
---|
| 3 | # 2004-01-31
|
---|
| 4 | # Adjust these to suit your installation
|
---|
| 5 | OUTPUTDIR = $(HOME)/public_html/blfs-book
|
---|
| 6 | INSTALL = install
|
---|
| 7 | JADE = openjade
|
---|
| 8 | DOCBOOK = /usr/share/sgml/docbook/dsssl-stylesheets-1.78
|
---|
| 9 |
|
---|
| 10 | SRCDIR = $(PWD)
|
---|
| 11 |
|
---|
| 12 | all: index.xml
|
---|
| 13 | @if [ -z $(OUTPUTDIR) ]; then \
|
---|
| 14 | echo "Envar OUTPUTDIR is not set!" ; \
|
---|
| 15 | exit 1 ; \
|
---|
| 16 | fi
|
---|
| 17 | @echo "Generating HTML Version of BLFS Book..."
|
---|
| 18 | @echo " OUTPUTDIR = $(OUTPUTDIR)"
|
---|
| 19 | @$(INSTALL) -d $(OUTPUTDIR)
|
---|
| 20 | @cd $(OUTPUTDIR) && $(INSTALL) -d introduction postlfs general \
|
---|
| 21 | connect basicnet server content x kde gnome xsoft \
|
---|
| 22 | multimedia pst preface appendices other
|
---|
| 23 | @cd $(OUTPUTDIR) && $(JADE) -t sgml -d $(DOCBOOK)/html/lfs.dsl \
|
---|
| 24 | $(DOCBOOK)/dtds/decls/xml.dcl $(SRCDIR)/index.xml
|
---|
[eff3826] | 25 |
|
---|
| 26 | BASEDIR=~/blfs-book/
|
---|
| 27 |
|
---|
| 28 | blfs:
|
---|
| 29 | xsltproc --xinclude --nonet -stringparam base.dir $(BASEDIR) \
|
---|
| 30 | stylesheets/blfs-chunked.xsl index.xml
|
---|
| 31 |
|
---|
| 32 | if [ ! -e $(BASEDIR)stylesheets ]; then \
|
---|
| 33 | mkdir -p $(BASEDIR)stylesheets; \
|
---|
| 34 | fi;
|
---|
| 35 | cp stylesheets/blfs.css $(BASEDIR)stylesheets
|
---|
| 36 |
|
---|
| 37 | if [ ! -e $(BASEDIR)images ]; then \
|
---|
| 38 | mkdir -p $(BASEDIR)images; \
|
---|
| 39 | fi;
|
---|
| 40 | cp /usr/share/xml/docbook/xsl-stylesheets-1.65.1/images/*.png \
|
---|
| 41 | $(BASEDIR)images
|
---|
| 42 | cd $(BASEDIR); sed -i -e "s@../stylesheets@stylesheets@" \
|
---|
| 43 | index.html
|
---|
| 44 | cd $(BASEDIR); sed -i -e "s@../images@images@g" \
|
---|
| 45 | index.html
|
---|
| 46 |
|
---|
| 47 | pdf:
|
---|
| 48 | xsltproc --xinclude --nonet --output lfs.fo
|
---|
| 49 | stylesheets/blfs-pdf.xsl \
|
---|
| 50 | index.xml
|
---|
| 51 | fop.sh lfs.fo lfs.pdf
|
---|
| 52 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.