source: Makefile@ 864b24de

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.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 xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 864b24de was 8e1efd0, checked in by Manuel Canales Esparcia <manuel@…>, 17 years ago

Added wget-list.xsl

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@6393 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 3.5 KB
Line 
1# Makefile for BLFS Book generation.
2# By Tushar Teredesai <tushar@linuxfromscratch.org>
3# 2004-01-31
4# $LastChangedBy$
5# $Date$
6# Adjust these to suit your installation
7OUTPUTDIR = $(HOME)/public_html/blfs-book
8DUMPDIR= $(HOME)/blfs-commands
9INSTALL = install
10JADE = openjade
11DOCBOOK = /usr/share/sgml/docbook/dsssl-stylesheets-1.78
12BASEDIR= $(HOME)/public_html/blfs-book-xsl
13TEXBASEDIR= $(HOME)/public_html/blfs-book-tex
14NOCHUNKS_OUTPUT=BLFS-BOOK.html
15SRCDIR = $(PWD)
16
17all: blfs
18
19blfs:
20 @if [ -z $(BASEDIR) ]; then \
21 echo "Envar BASEDIR is not set!" ; \
22 exit 1 ; \
23 fi
24 @echo "Generating XHTML Version of BLFS Book with xsltproc..."
25 @echo " BASEDIR = $(BASEDIR)"
26 @$(INSTALL) -d $(BASEDIR)
27 xsltproc --xinclude --nonet -stringparam base.dir $(BASEDIR)/ \
28 stylesheets/blfs-chunked.xsl index.xml
29 if [ ! -e $(BASEDIR)/stylesheets ]; then \
30 mkdir -p $(BASEDIR)/stylesheets; \
31 fi;
32 cp stylesheets/*.css $(BASEDIR)/stylesheets
33 if [ ! -e $(BASEDIR)/images ]; then \
34 mkdir -p $(BASEDIR)/images; \
35 fi;
36 cp images/*.png $(BASEDIR)/images
37 cd $(BASEDIR); sed -i -e "s@../stylesheets@stylesheets@g" *.html
38 cd $(BASEDIR); sed -i -e "s@../images@images@g" *.html
39
40 for filename in `find $(BASEDIR) -name "*.html"`; do \
41 tidy -config tidy.conf $$filename; \
42 true; \
43 sh obfuscate.sh $$filename; \
44 sed -i -e "s@text/html@application/xhtml+xml@g" $$filename; \
45 done;
46
47wget-list:
48 mkdir -p $(BASEDIR)
49 xsltproc --xinclude --nonet stylesheets/wget-list.xsl index.xml > $(BASEDIR)/wget-list
50
51nochunks:
52 @echo "Generating nochunks version of BLFS..."
53 xsltproc --xinclude --nonet -stringparam profile.condition html \
54 --output $(BASEDIR)/$(NOCHUNKS_OUTPUT) \
55 stylesheets/blfs-nochunks.xsl index.xml
56
57 tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || true
58
59 sh obfuscate.sh $(BASEDIR)/$(NOCHUNKS_OUTPUT)
60
61 sed -i -e "s@text/html@application/xhtml+xml@g" \
62 $(BASEDIR)/$(NOCHUNKS_OUTPUT)
63
64pdf:
65 xsltproc --xinclude --nonet --stringparam profile.condition pdf \
66 --output blfs-pdf.xml stylesheets/blfs-profile.xsl index.xml
67 xsltproc --xinclude --nonet --output blfs.fo \
68 stylesheets/blfs-pdf.xsl blfs-pdf.xml
69 sed -i -e "s/inherit/all/" blfs.fo
70 fop.sh blfs.fo blfs.pdf
71 $(INSTALL) -d $(BASEDIR)/pdf
72 rm blfs.fo
73 mv blfs.pdf $(BASEDIR)/pdf
74
75tex:
76 @if [ -z $(TEXBASEDIR) ]; then \
77 echo "Envar TEXBASEDIR is not set!" ; \
78 exit 1 ; \
79 fi
80 @echo "Generating TeX Version of BLFS Book with xsltproc..."
81 @echo " TEXBASEDIR = $(TEXBASEDIR)"
82 @$(INSTALL) -d $(TEXBASEDIR)
83# Using profiles in book source to exclude parts of the book from TeX
84# i.e., Changelog
85 xsltproc --nonet --output $(TEXBASEDIR)/index.xml \
86 --stringparam "profile.role" "book" \
87 http://docbook.sourceforge.net/release/xsl/current/profiling/profile.xsl \
88 index.xml
89 @cd $(TEXBASEDIR) && xsltproc --nonet -o blfs-book.tex \
90 $(SRCDIR)/stylesheets/blfs-tex.xsl index.xml
91
92dump-commands:
93 xsltproc --xinclude --nonet --output $(DUMPDIR)/ \
94 stylesheets/dump-commands.xsl index.xml
95
96validate:
97 xmllint --noout --nonet --xinclude --postvalid index.xml
98
99validate-pdf:
100 xsltproc --xinclude --nonet --stringparam profile.condition pdf \
101 --output blfs-pdf.xml stylesheets/blfs-profile.xsl index.xml
102 xmllint --noout --nonet --postvalid blfs-pdf.xml
103
104blfs-patch-list:
105 @echo "Generating blfs-patch-list..."
106 xsltproc --xinclude --nonet \
107 --output blfs-patch-list stylesheets/patcheslist.xsl index.xml
108 sed -e "s|^.*/||" blfs-patch-list > blfs-patches
109 sort blfs-patches > blfs-patch-list
110 rm blfs-patches
111
112.PHONY : blfs-patch-list
Note: See TracBrowser for help on using the repository browser.