Commented the PDF generation from the Makefile

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@10536 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
Randy McMurchy 2012-08-22 16:33:50 +00:00
parent ca1500d4f1
commit f5ee8c2e8f

View File

@ -10,7 +10,7 @@ DUMPDIR ?= $(HOME)/blfs-commands
RENDERTMP ?= tmp RENDERTMP ?= tmp
CHUNK_QUIET = 1 CHUNK_QUIET = 1
ROOT_ID = ROOT_ID =
PDF_OUTPUT = BLFS-BOOK.pdf #PDF_OUTPUT = BLFS-BOOK.pdf
NOCHUNKS_OUTPUT = BLFS-BOOK.html NOCHUNKS_OUTPUT = BLFS-BOOK.html
SHELL = /bin/bash SHELL = /bin/bash
@ -26,7 +26,8 @@ else
endif endif
blfs: html wget-list blfs: html wget-list
all: blfs nochunks pdf #all: blfs nochunks pdf
all: blfs nochunks
world: all blfs-patch-list dump-commands test-links world: all blfs-patch-list dump-commands test-links
html: $(BASEDIR)/index.html html: $(BASEDIR)/index.html
@ -56,26 +57,26 @@ $(BASEDIR)/index.html: $(RENDERTMP)/blfs-html.xml
sed -i -e "s@text/html@application/xhtml+xml@g" $$filename; \ sed -i -e "s@text/html@application/xhtml+xml@g" $$filename; \
done; done;
pdf: $(BASEDIR)/$(PDF_OUTPUT) #pdf: $(BASEDIR)/$(PDF_OUTPUT)
$(RENDERTMP)/blfs-pdf.xml: $(RENDERTMP)/blfs-full.xml #$(RENDERTMP)/blfs-pdf.xml: $(RENDERTMP)/blfs-full.xml
@echo "Generating profiled XML for PDF..." # @echo "Generating profiled XML for PDF..."
$(Q)xsltproc --nonet --stringparam profile.condition pdf \ # $(Q)xsltproc --nonet --stringparam profile.condition pdf \
--output $(RENDERTMP)/blfs-pdf.xml stylesheets/lfs-xsl/profile.xsl \ --output $(RENDERTMP)/blfs-pdf.xml stylesheets/lfs-xsl/profile.xsl \
$(RENDERTMP)/blfs-full.xml $(RENDERTMP)/blfs-full.xml
$(RENDERTMP)/blfs-pdf.fo: $(RENDERTMP)/blfs-pdf.xml #$(RENDERTMP)/blfs-pdf.fo: $(RENDERTMP)/blfs-pdf.xml
@echo "Generating FO file..." # @echo "Generating FO file..."
$(Q)xsltproc --nonet -stringparam rootid "$(ROOT_ID)" \ # $(Q)xsltproc --nonet -stringparam rootid "$(ROOT_ID)" \
--output $(RENDERTMP)/blfs-pdf.fo stylesheets/blfs-pdf.xsl \ --output $(RENDERTMP)/blfs-pdf.fo stylesheets/blfs-pdf.xsl \
$(RENDERTMP)/blfs-pdf.xml $(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 #$(BASEDIR)/$(PDF_OUTPUT): $(RENDERTMP)/blfs-pdf.fo
@echo "Generating PDF file..." # @echo "Generating PDF file..."
$(Q)if [ ! -e $(BASEDIR) ]; then \ # $(Q)if [ ! -e $(BASEDIR) ]; then \
mkdir -p $(BASEDIR); \ mkdir -p $(BASEDIR); \
fi; fi;
$(Q)fop $(RENDERTMP)/blfs-pdf.fo $(BASEDIR)/$(PDF_OUTPUT) # $(Q)fop $(RENDERTMP)/blfs-pdf.fo $(BASEDIR)/$(PDF_OUTPUT)
nochunks: $(BASEDIR)/$(NOCHUNKS_OUTPUT) nochunks: $(BASEDIR)/$(NOCHUNKS_OUTPUT)
$(BASEDIR)/$(NOCHUNKS_OUTPUT): $(RENDERTMP)/blfs-html.xml $(BASEDIR)/$(NOCHUNKS_OUTPUT): $(RENDERTMP)/blfs-html.xml
@ -97,8 +98,9 @@ $(RENDERTMP):
clean: clean:
@echo "Cleaning $(RENDERTMP)" @echo "Cleaning $(RENDERTMP)"
$(Q)rm -f $(RENDERTMP)/blfs-{full,html,pdf}.xml $(Q)rm -f $(RENDERTMP)/blfs-{full,html}.xml
$(Q)rm -f $(RENDERTMP)/blfs-pdf.fo # $(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)rm -f $(RENDERTMP)/blfs-{patch-list,patches}
$(Q)rmdir $(RENDERTMP) 2>/dev/null || : $(Q)rmdir $(RENDERTMP) 2>/dev/null || :
@ -169,5 +171,8 @@ validate:
@echo "Validating the book..." @echo "Validating the book..."
$(Q)xmllint --noout --nonet --xinclude --postvalid index.xml $(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 profile-html wget-list test-links dump-commands validate