mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-31 11:21:59 +00:00
Synced Makefile file from testing branch. Added index-print.xml from testing branch so PDF generation works properly for trunk too
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4022 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
3f82d653bf
commit
536b6aa453
36
Makefile
36
Makefile
@ -27,23 +27,33 @@ lfs:
|
|||||||
|
|
||||||
sh goTidy $(BASEDIR)/
|
sh goTidy $(BASEDIR)/
|
||||||
|
|
||||||
pdf:
|
#
|
||||||
xsltproc --xinclude --nonet --output lfs.fo stylesheets/lfs-pdf.xsl \
|
# This is the old "pdf" target. The old "print" target below has been
|
||||||
index.xml
|
# renamed to "pdf" and will be used. This commented out previous_pdf
|
||||||
sed -i -e "s/inherit/all/" lfs.fo
|
# target can be removed eventually. It'll remain here for a bit for
|
||||||
fop.sh lfs.fo $(PDF_OUTPUT)
|
# historical reasons
|
||||||
|
#
|
||||||
|
#previous_pdf:
|
||||||
|
# xsltproc --xinclude --nonet --output $(BASEDIR)/lfs.fo stylesheets/lfs-pdf.xsl \
|
||||||
|
# index.xml
|
||||||
|
# sed -i -e "s/inherit/all/" $(BASEDIR)/lfs.fo
|
||||||
|
# fop.sh $(BASEDIR)/lfs.fo $(BASEDIR)/$(PDF_OUTPUT)
|
||||||
|
# rm lfs.fo
|
||||||
|
|
||||||
print:
|
pdf:
|
||||||
xsltproc --xinclude --nonet --stringparam profile.condition print --output lfs-print.xml \
|
xsltproc --xinclude --nonet --stringparam profile.condition print \
|
||||||
stylesheets/lfs-profile.xsl index.xml
|
--output $(BASEDIR)/lfs-print.xml stylesheets/lfs-profile.xsl index-print.xml
|
||||||
xsltproc --nonet --output lfs-print.fo stylesheets/lfs-print.xsl lfs-print.xml
|
xsltproc --nonet --output $(BASEDIR)/lfs-print.fo stylesheets/lfs-print.xsl \
|
||||||
sed -i -e "s/inherit/all/" lfs-print.fo
|
$(BASEDIR)/lfs-print.xml
|
||||||
fop.sh lfs-print.fo $(PRINT_OUTPUT)
|
sed -i -e "s/inherit/all/" $(BASEDIR)/lfs-print.fo
|
||||||
|
fop.sh $(BASEDIR)/lfs-print.fo $(BASEDIR)/$(PRINT_OUTPUT)
|
||||||
|
rm $(BASEDIR)/lfs-print.xml $(BASEDIR)/lfs-print.fo
|
||||||
|
|
||||||
nochunks:
|
nochunks:
|
||||||
xsltproc --xinclude --nonet --output $(NOCHUNKS_OUTPUT) \
|
xsltproc --xinclude --nonet --output $(BASEDIR)/$(NOCHUNKS_OUTPUT) \
|
||||||
stylesheets/lfs-nochunks.xsl index.xml
|
stylesheets/lfs-nochunks.xsl index.xml
|
||||||
tidy -config tidy.conf $(NOCHUNKS_OUTPUT) || true
|
tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || true
|
||||||
|
|
||||||
validate:
|
validate:
|
||||||
xmllint --noout --nonet --xinclude --postvalid index.xml
|
xmllint --noout --nonet --xinclude --postvalid index.xml
|
||||||
|
|
||||||
|
49
index-print.xml
Normal file
49
index-print.xml
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||||
|
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
||||||
|
<!ENTITY % general-entities SYSTEM "general.ent">
|
||||||
|
%general-entities;
|
||||||
|
]>
|
||||||
|
<book>
|
||||||
|
|
||||||
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="prologue/bookinfo.xml"/>
|
||||||
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="prologue/dedication.xml"/>
|
||||||
|
|
||||||
|
<preface id="preface">
|
||||||
|
<title>Preface</title>
|
||||||
|
|
||||||
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="prologue/foreword.xml"/>
|
||||||
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="prologue/audience.xml"/>
|
||||||
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="prologue/prerequisites.xml"/>
|
||||||
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="prologue/typography.xml"/>
|
||||||
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="prologue/organization.xml"/>
|
||||||
|
|
||||||
|
</preface>
|
||||||
|
|
||||||
|
<part id="part1">
|
||||||
|
<title>Introduction</title>
|
||||||
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="chapter01/chapter01.xml"/>
|
||||||
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="chapter02/chapter02.xml"/>
|
||||||
|
</part>
|
||||||
|
|
||||||
|
<part id="part2">
|
||||||
|
<title>Preparing for the build</title>
|
||||||
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="chapter03/chapter03.xml"/>
|
||||||
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="chapter04/chapter04.xml"/>
|
||||||
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="chapter05/chapter05.xml"/>
|
||||||
|
</part>
|
||||||
|
|
||||||
|
<part id="part3">
|
||||||
|
<title>Building the LFS system</title>
|
||||||
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="chapter06/chapter06.xml"/>
|
||||||
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="chapter07/chapter07.xml"/>
|
||||||
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="chapter08/chapter08.xml"/>
|
||||||
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="chapter09/chapter09.xml"/>
|
||||||
|
</part>
|
||||||
|
|
||||||
|
<index/>
|
||||||
|
|
||||||
|
<appendix><title/>
|
||||||
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="prologue/acknowledgments.xml"/>
|
||||||
|
</appendix>
|
||||||
|
|
||||||
|
</book>
|
Loading…
Reference in New Issue
Block a user