source: Makefile@ 710e54d

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 710e54d was 1881a5b, checked in by Bruce Dubbs <bdubbs@…>, 19 years ago

Added bluefish from patch from theOldFellow; updated Makefile and README

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

  • Property mode set to 100644
File size: 2.7 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
8INSTALL = install
9JADE = openjade
10DOCBOOK = /usr/share/sgml/docbook/dsssl-stylesheets-1.78
11BASEDIR= $(HOME)/public_html/blfs-book-xsl/
12TEXBASEDIR= $(HOME)/public_html/blfs-book-tex/
13NOCHUNKS_OUTPUT=BLFS-BOOK.html
14SRCDIR = $(PWD)
15
16all: blfs
17
18blfs:
19 @if [ -z $(BASEDIR) ]; then \
20 echo "Envar BASEDIR is not set!" ; \
21 exit 1 ; \
22 fi
23 @echo "Generating XHTML Version of BLFS Book with xsltproc..."
24 @echo " BASEDIR = $(BASEDIR)"
25 @$(INSTALL) -d $(BASEDIR)
26 xsltproc --xinclude --nonet -stringparam base.dir $(BASEDIR) \
27 stylesheets/blfs-chunked.xsl index.xml
28 if [ ! -e $(BASEDIR)stylesheets ]; then \
29 mkdir -p $(BASEDIR)stylesheets; \
30 fi;
31 cp stylesheets/*.css $(BASEDIR)stylesheets
32 if [ ! -e $(BASEDIR)images ]; then \
33 mkdir -p $(BASEDIR)images; \
34 fi;
35 cp images/*.png $(BASEDIR)/images
36 cd $(BASEDIR); sed -i -e "s@../stylesheets@stylesheets@g" *.html
37 cd $(BASEDIR); sed -i -e "s@../images@images@g" *.html
38 sh goTidy $(BASEDIR)/
39
40nochunks:
41 @echo "Generating nochunks version of BLFS..."
42 xsltproc --xinclude --nonet -stringparam profile.condition html \
43 --output $(BASEDIR)/$(NOCHUNKS_OUTPUT) \
44 stylesheets/blfs-nochunks.xsl index.xml
45
46 tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || true
47
48 sed -i -e "s@text/html@application/xhtml+xml@g" \
49 $(BASEDIR)/$(NOCHUNKS_OUTPUT)
50
51pdf:
52 xsltproc --xinclude --nonet --output blfs.fo \
53 stylesheets/blfs-pdf.xsl index.xml
54 sed -i -e "s/inherit/all/" blfs.fo
55 fop.sh blfs.fo blfs.pdf
56 $(INSTALL) -d $(BASEDIR)pdf
57 rm blfs.fo
58 mv blfs.pdf $(BASEDIR)pdf
59
60tex:
61 @if [ -z $(TEXBASEDIR) ]; then \
62 echo "Envar TEXBASEDIR is not set!" ; \
63 exit 1 ; \
64 fi
65 @echo "Generating TeX Version of BLFS Book with xsltproc..."
66 @echo " TEXBASEDIR = $(TEXBASEDIR)"
67 @$(INSTALL) -d $(TEXBASEDIR)
68# Using profiles in book source to exclude parts of the book from TeX
69# i.e., Changelog
70 xsltproc --nonet --output $(TEXBASEDIR)index.xml \
71 --stringparam "profile.role" "book" \
72 http://docbook.sourceforge.net/release/xsl/current/profiling/profile.xsl \
73 index.xml
74 @cd $(TEXBASEDIR) && xsltproc --nonet -o blfs-book.tex \
75 $(SRCDIR)/stylesheets/blfs-tex.xsl index.xml
76
77validate:
78 xmllint --noout --nonet --xinclude --postvalid index.xml
79
80blfs-patch-list:
81 @echo "Generating blfs-patch-list..."
82 xsltproc --xinclude --nonet \
83 --output blfs-patch-list stylesheets/patcheslist.xsl index.xml
84 sed -e "s|^.*/||" blfs-patch-list > blfs-patches
85 sort blfs-patches > blfs-patch-list
86 rm blfs-patches
87
88.PHONY : blfs-patch-list
Note: See TracBrowser for help on using the repository browser.