Changeset bc7834d for BOOK/Makefile


Ignore:
Timestamp:
Jan 1, 2010, 3:44:49 PM (15 years ago)
Author:
Joe Ciccone <jciccone@…>
Branches:
clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
ff39de2
Parents:
2b77c9d4
Message:

Generate the profiled XML in its own make target.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/Makefile

    r2b77c9d4 rbc7834d  
    88RENDERTMP       := $(WORKDIR)/tmp
    99CHUNK_QUIET     := 1
    10 ROOT_ID        :=
     10ROOT_ID  :=
    1111
    1212S               := -
     
    1414ARCHS           := x86 x86_64 x86_64-64 sparc sparc64 sparc64-64 mips mips64 mips64-64 \
    1515                   ppc ppc64 alpha
     16
     17ARCHS_P_XML     := $(ARCHS:%=%-profiled-xml)
    1618
    1719ARCHS_HTML      := $(ARCHS:%=%$(S)html)
     
    6163          $(PWD)/stylesheets/top-index.xsl $(PWD)/index.xml
    6264
     65$(ARCHS_P_XML): override profiled_xml_arch = $(@:%-profiled-xml=%)
     66$(ARCHS_P_XML):
     67        @echo "Validating $(profiled_xml_arch) book..."
     68        $(Q)xmllint --nonet --noent --xinclude --postvalid \
     69          -o $(RENDERTMP)/$(profiled_xml_arch)-full.xml $(PWD)/$(profiled_xml_arch)-index.xml
     70
     71        @echo "Generating profiled $(profiled_xml_arch) book for XHTML..."
     72        $(Q)xsltproc --nonet --stringparam profile.condition html \
     73          --output $(RENDERTMP)/$(profiled_xml_arch)-html.xml \
     74          $(PWD)/stylesheets/lfs-xsl/profile.xsl $(RENDERTMP)/$(profiled_xml_arch)-full.xml
     75
    6376$(ARCHS_HTML): override html_arch = $(@:%$(S)html=%)
    6477$(ARCHS_HTML):
    65         @echo "Validating $(html_arch) book..."
    66         $(Q)xmllint --nonet --noent --xinclude --postvalid \
    67           -o $(RENDERTMP)/$(html_arch)-full.xml $(PWD)/$(html_arch)-index.xml
    68 
    69         @echo "Generating profiled $(html_arch) book for XHTML..."
    70         $(Q)xsltproc --nonet --stringparam profile.condition html \
    71           --output $(RENDERTMP)/$(html_arch)-html.xml \
    72           $(PWD)/stylesheets/lfs-xsl/profile.xsl $(RENDERTMP)/$(html_arch)-full.xml
     78        @$(MAKE) $(html_arch)-profiled-xml
    7379
    7480        @echo "Rendering chunked XHTML of $(html_arch)..."
     
    9197$(ARCHS_NOCHUNKS): override nochunk_arch = $(@:%$(S)nochunks=%)
    9298$(ARCHS_NOCHUNKS):
    93         @echo "Validating $(nochunk_arch) book..."
    94         $(Q)xmllint --nonet --noent --xinclude --postvalid \
    95           -o $(RENDERTMP)/$(nochunk_arch)-full.xml $(PWD)/$(nochunk_arch)-index.xml
    96 
    97         @echo "Generating profiled $(nochunk_arch) book for XHTML..."
    98         $(Q)xsltproc --nonet --stringparam profile.condition html \
    99           --output $(RENDERTMP)/$(nochunk_arch)-html.xml \
    100           $(PWD)/stylesheets/lfs-xsl/profile.xsl \
    101           $(RENDERTMP)/$(nochunk_arch)-full.xml
     99        @$(MAKE) $(nochunk_arch)-profiled-xml
    102100
    103101        @echo "Rendering Single File HTML of $(nochunk_arch)..."
     
    118116$(ARCHS_PDF): override pdf_arch =  $(@:%$(S)pdf=%)
    119117$(ARCHS_PDF):
    120         @echo "Validating $(pdf_arch) book..."
    121         $(Q)xmllint --nonet --noent --xinclude --postvalid \
    122           -o $(RENDERTMP)/$(pdf_arch)-full.xml $(PWD)/$(pdf_arch)-index.xml
    123 
    124         @echo "Generating profiled $(pdf_arch) book for PDF..."
    125         $(Q)xsltproc --nonet --stringparam profile.condition pdf \
    126           --output $(RENDERTMP)/$(pdf_arch)-pdf.xml \
    127           $(PWD)/stylesheets/lfs-xsl/profile.xsl \
    128           $(RENDERTMP)/$(pdf_arch)-full.xml
     118        @$(MAKE) $(pdf_arch)-profiled-xml
    129119
    130120        @echo "Generating FO file of $(pdf_arch)..."
Note: See TracChangeset for help on using the changeset viewer.