Subversion Repositories svn LFS-FR

Compare Revisions

Ignore whitespace Rev 2472 → Rev 2473

/trunk/blfs/Makefile
1,8 → 1,8
# Makefile for BLFS Book generation.
# By Tushar Teredesai <tushar@linuxfromscratch.org>
# 2004-01-31
# $LastChangedBy: bdubbs $
# $Date: 2012-01-07 18:48:20 +0100 (sam 07 jan 2012) $
# $LastChangedBy: randy $
# $Date: 2012-08-22 18:33:50 +0200 (mer. 22 août 2012) $
 
# Adjust these to suit your installation
BASEDIR ?= $(HOME)/public_html/blfs-book-xsl
10,7 → 10,7
RENDERTMP ?= tmp
CHUNK_QUIET = 1
ROOT_ID =
PDF_OUTPUT = BLFS-BOOK.pdf
#PDF_OUTPUT = BLFS-BOOK.pdf
NOCHUNKS_OUTPUT = BLFS-BOOK.html
SHELL = /bin/bash
 
26,7 → 26,8
endif
 
blfs: html wget-list
all: blfs nochunks pdf
#all: blfs nochunks pdf
all: blfs nochunks
world: all blfs-patch-list dump-commands test-links
 
html: $(BASEDIR)/index.html
56,26 → 57,26
sed -i -e "s@text/html@application/xhtml+xml@g" $$filename; \
done;
 
pdf: $(BASEDIR)/$(PDF_OUTPUT)
$(RENDERTMP)/blfs-pdf.xml: $(RENDERTMP)/blfs-full.xml
@echo "Generating profiled XML for PDF..."
$(Q)xsltproc --nonet --stringparam profile.condition pdf \
#pdf: $(BASEDIR)/$(PDF_OUTPUT)
#$(RENDERTMP)/blfs-pdf.xml: $(RENDERTMP)/blfs-full.xml
# @echo "Generating profiled XML for PDF..."
# $(Q)xsltproc --nonet --stringparam profile.condition pdf \
--output $(RENDERTMP)/blfs-pdf.xml stylesheets/lfs-xsl/profile.xsl \
$(RENDERTMP)/blfs-full.xml
 
$(RENDERTMP)/blfs-pdf.fo: $(RENDERTMP)/blfs-pdf.xml
@echo "Generating FO file..."
$(Q)xsltproc --nonet -stringparam rootid "$(ROOT_ID)" \
#$(RENDERTMP)/blfs-pdf.fo: $(RENDERTMP)/blfs-pdf.xml
# @echo "Generating FO file..."
# $(Q)xsltproc --nonet -stringparam rootid "$(ROOT_ID)" \
--output $(RENDERTMP)/blfs-pdf.fo stylesheets/blfs-pdf.xsl \
$(RENDERTMP)/blfs-pdf.xml
$(Q)sed -i -e 's/span="inherit"/span="all"/' $(RENDERTMP)/blfs-pdf.fo
# $(Q)sed -i -e 's/span="inherit"/span="all"/' $(RENDERTMP)/blfs-pdf.fo
 
$(BASEDIR)/$(PDF_OUTPUT): $(RENDERTMP)/blfs-pdf.fo
@echo "Generating PDF file..."
$(Q)if [ ! -e $(BASEDIR) ]; then \
#$(BASEDIR)/$(PDF_OUTPUT): $(RENDERTMP)/blfs-pdf.fo
# @echo "Generating PDF file..."
# $(Q)if [ ! -e $(BASEDIR) ]; then \
mkdir -p $(BASEDIR); \
fi;
$(Q)fop $(RENDERTMP)/blfs-pdf.fo $(BASEDIR)/$(PDF_OUTPUT)
# $(Q)fop $(RENDERTMP)/blfs-pdf.fo $(BASEDIR)/$(PDF_OUTPUT)
 
nochunks: $(BASEDIR)/$(NOCHUNKS_OUTPUT)
$(BASEDIR)/$(NOCHUNKS_OUTPUT): $(RENDERTMP)/blfs-html.xml
97,8 → 98,9
 
clean:
@echo "Cleaning $(RENDERTMP)"
$(Q)rm -f $(RENDERTMP)/blfs-{full,html,pdf}.xml
$(Q)rm -f $(RENDERTMP)/blfs-pdf.fo
$(Q)rm -f $(RENDERTMP)/blfs-{full,html}.xml
# $(Q)rm -f $(RENDERTMP)/blfs-{full,html,pdf}.xml
# $(Q)rm -f $(RENDERTMP)/blfs-pdf.fo
$(Q)rm -f $(RENDERTMP)/blfs-{patch-list,patches}
$(Q)rmdir $(RENDERTMP) 2>/dev/null || :
 
169,5 → 171,8
@echo "Validating the book..."
$(Q)xmllint --noout --nonet --xinclude --postvalid index.xml
 
.PHONY: blfs all world html pdf nochunks tmpdir clean validxml \
.PHONY: blfs all world html nochunks tmpdir clean validxml \
profile-html wget-list test-links dump-commands validate
 
#.PHONY: blfs all world html pdf nochunks tmpdir clean validxml \
profile-html wget-list test-links dump-commands validate