mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-23 22:42:14 +08:00
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:
parent
ca1500d4f1
commit
f5ee8c2e8f
39
Makefile
39
Makefile
@ -10,7 +10,7 @@ DUMPDIR ?= $(HOME)/blfs-commands
|
||||
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 @@ else
|
||||
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 @@ $(BASEDIR)/index.html: $(RENDERTMP)/blfs-html.xml
|
||||
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 @@ $(RENDERTMP):
|
||||
|
||||
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 @@ validate:
|
||||
@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
|
||||
|
Loading…
Reference in New Issue
Block a user