source: Makefile@ 47d87939

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 xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 47d87939 was 47d87939, checked in by Bruce Dubbs <bdubbs@…>, 20 years ago

Updates to enable creating a list of blfs patches

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

  • Property mode set to 100644
File size: 2.6 KB
RevLine 
[19599c63]1# Makefile for BLFS Book generation.
2# By Tushar Teredesai <tushar@linuxfromscratch.org>
3# 2004-01-31
[47d87939]4# $LastChangedBy$
5# $Date$
[19599c63]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
[e9e9b47]11BASEDIR= $(HOME)/public_html/blfs-book-xsl/
[9c12e42]12TEXBASEDIR= $(HOME)/public_html/blfs-book-tex/
[19599c63]13
14SRCDIR = $(PWD)
15
[972150e7]16all: blfs
[22c4e1ee]17
[eff3826]18blfs:
[e9e9b47]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)
[eff3826]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;
[3984104]31 cp stylesheets/*.css $(BASEDIR)stylesheets
[eff3826]32 if [ ! -e $(BASEDIR)images ]; then \
33 mkdir -p $(BASEDIR)images; \
34 fi;
[5d4975d]35 cp images/*.png $(BASEDIR)/images
[47d87939]36 cd $(BASEDIR); sed -i -e "s@../stylesheets@stylesheets@" index.html
37 cd $(BASEDIR); sed -i -e "s@../images@images@g" index.html
[3984104]38 sh goTidy $(BASEDIR)/
[eff3826]39
40pdf:
[d9712fb]41 xsltproc --xinclude --nonet --output blfs.fo \
[eff3826]42 stylesheets/blfs-pdf.xsl \
43 index.xml
[5d4975d]44 sed -i -e "s/inherit/all/" blfs.fo
[9c12e42]45 /opt/fop/fop.sh blfs.fo blfs.pdf
46 $(INSTALL) -d $(BASEDIR)pdf
47 rm blfs.fo
48 mv blfs.pdf $(BASEDIR)pdf
[e9e9b47]49
[5d4975d]50print:
51 xsltproc --xinclude --nonet --output blfs-print.fo \
52 stylesheets/blfs-print.xsl index.xml
53 sed -i -e "s/inherit/all/" blfs-print.fo
[9c12e42]54 /opt/fop/fop.sh blfs-print.fo blfs-print.pdf
55 $(INSTALL) -d $(BASEDIR)print
56 rm blfs-print.fo
57 mv blfs-print.pdf $(BASEDIR)print
[5d4975d]58
[e9e9b47]59tex:
60 @if [ -z $(TEXBASEDIR) ]; then \
61 echo "Envar TEXBASEDIR is not set!" ; \
62 exit 1 ; \
63 fi
64 @echo "Generating TeX Version of BLFS Book with xsltproc..."
65 @echo " TEXBASEDIR = $(TEXBASEDIR)"
66 @$(INSTALL) -d $(TEXBASEDIR)
67# Using profiles in book source to exclude parts of the book from TeX
[0990cf7a]68# i.e., Changelog
[9c12e42]69 xsltproc --nonet --output $(TEXBASEDIR)index.xml \
[e9e9b47]70 --stringparam "profile.role" "book" \
71 http://docbook.sourceforge.net/release/xsl/current/profiling/profile.xsl \
72 index.xml
73 @cd $(TEXBASEDIR) && xsltproc --nonet -o blfs-book.tex \
[9c12e42]74 $(SRCDIR)/stylesheets/blfs-tex.xsl index.xml
[22c4e1ee]75
[7337fcb]76validate:
[714d067]77 xmllint --noout --nonet --xinclude --postvalid index.xml
[47d87939]78
79blfs-patch-list:
80 @echo "Generating blfs-patch-list..."
81 xsltproc --xinclude --nonet \
82 --output blfs-patch-list stylesheets/patcheslist.xsl index.xml
83 sed -e "s|^.*/||" blfs-patch-list > blfs-patches
84 sort blfs-patches > blfs-patch-list
85 rm blfs-patches
86
87.PHONY : blfs-patch-list
Note: See TracBrowser for help on using the repository browser.