Changeset 4fe47e3 for BOOK/Makefile


Ignore:
Timestamp:
Feb 27, 2011, 4:05:52 PM (14 years ago)
Author:
Joe Ciccone <jciccone@…>
Children:
d17cfb8
Parents:
eef46e9
Message:

Add the initial changes for a new xml format for the packages part
of the book. This is still preliminary and currently is pretty
broken, more to come in the future as bugs get squashed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/Makefile

    reef46e9 r4fe47e3  
    33
    44VALIDATEDIR     := $(RENDERDIR)/validate
     5DBXMLDIR        := $(RENDERDIR)/docbook
    56PROFILEDIR      := $(RENDERDIR)/profile
    67
     
    2324                   ppc ppc64 \
    2425                   alpha
     26
     27x86_ML          := 32
     28x86_64_ML       := 32,64
     29x86_64-64_ML    := 64
     30sparc_ML        := 32
     31sparc64_ML      := 32,64
     32sparc64-64_ML   := 64
     33mips_ML         := 32
     34mips64_ML       := 32,n32,64
     35mips64-64_ML    := 64
     36ppc_ML          := 32
     37ppc64_ML        := 32,64
     38alpha_ML        := 64
    2539
    2640ifdef V
     
    7185          if test $${?} -ne 0; then true; else false; fi
    7286
     87ARCHS_DB_XML := $(ARCHS:%=%-db-xml)
     88.PHONY: $(ARCHS_DB_XML)
     89$(ARCHS_DB_XML): override arch = $(@:%-db-xml=%)
     90$(ARCHS_DB_XML):
     91        @$(MAKE) --no-print-directory $(arch)-validate_dump-xml
     92        @echo "Generating DocBook XML for $(arch)..."
     93        $(Q)mkdir -p $(DBXMLDIR)
     94        $(Q)xsltproc --nonet \
     95          --stringparam clfs.arch "$(arch)" \
     96          --stringparam clfs.multilib "$($(arch)_ML)" \
     97          --output $(DBXMLDIR)/$(arch)-db.xml \
     98          $(PWD)/stylesheets/clfs-profile.xsl \
     99          $(VALIDATEDIR)/$(arch)-full.xml
     100
    73101ARCHS_P_XML := $(ARCHS:%=%-profiled-xml)
    74102.PHONY: $(ARCHS_P_XML)
    75103$(ARCHS_P_XML): override arch = $(@:%-profiled-xml=%)
    76104$(ARCHS_P_XML):
    77         @$(MAKE) --no-print-directory $(arch)-validate_dump-xml
     105        @$(MAKE) --no-print-directory $(arch)-db-xml
    78106        @echo "Profiling $(arch) for rendering..."
    79107        $(Q)mkdir -p $(PROFILEDIR)
    80         $(Q)xsltproc --nonet --stringparam profile.condition html \
     108        $(Q)xsltproc --nonet \
     109          --stringparam profile.condition html \
    81110          --output $(PROFILEDIR)/$(arch)-html.xml \
    82111          $(PWD)/stylesheets/lfs-xsl/profile.xsl \
    83           $(VALIDATEDIR)/$(arch)-full.xml
     112          $(DBXMLDIR)/$(arch)-db.xml
    84113
    85114ARCHS_VDB_XML := $(ARCHS:%=%-validate_db-xml)
     
    90119        $(Q)xmllint --noout --nonet \
    91120          --relaxng $(TOP)/schema/docbook/4.5/rng/docbook.rng \
    92           $(VALIDATEDIR)/$(arch)-full.xml \
     121          $(PROFILEDIR)/$(arch)-html.xml \
    93122          2>&1 | grep -v " validates$$"; \
    94123          if test $${?} -ne 0; then true; else false; fi
Note: See TracChangeset for help on using the changeset viewer.