Changeset b6dd23c7 for Makefile


Ignore:
Timestamp:
01/27/2024 09:42:07 PM (4 months ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
12.1, 12.1-rc1, multilib, trunk, xry111/arm64, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.1, xry111/mips64el, xry111/update-glibc
Children:
b8d33a5
Parents:
16d0182
git-author:
Pierre Labastie <pierre.labastie@…> (01/27/2024 04:03:47 PM)
git-committer:
Pierre Labastie <pierre.labastie@…> (01/27/2024 09:42:07 PM)
Message:

Makefile: improvements in xsltproc commands

  • remove some useless --xinclude
  • write only one option per line
  • use --encode UTF-8 instead of --noent (which is useless after profiling anyway
  • try to be consistent in option order
  • use --output instead of -o
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r16d0182 rb6dd23c7  
    124124        $(Q)xsltproc --nonet                               \
    125125                --xinclude                            \
     126                --stringparam profile.revision $(REV) \
    126127                --output $(RENDERTMP)/lfs-html2.xml   \
    127                 --stringparam profile.revision $(REV) \
    128128                stylesheets/lfs-xsl/profile.xsl       \
    129129                index.xml
    130130
    131131        @echo "Validating the book..."
    132         $(Q)xmllint --nonet                      \
    133                --noent                      \
    134                --postvalid                  \
    135                -o $(RENDERTMP)/lfs-full.xml \
     132        $(Q)xmllint --nonet                            \
     133               --encode UTF-8                     \
     134               --postvalid                        \
     135               --output $(RENDERTMP)/lfs-full.xml \
    136136               $(RENDERTMP)/lfs-html2.xml
    137137
     
    155155        @echo "Generating consolidated wget list at $(BASEDIR)/wget-list ..."
    156156        $(Q)mkdir -p $(BASEDIR)
    157         $(Q)xsltproc --xinclude --nonet            \
     157        $(Q)xsltproc --nonet                       \
     158                --xinclude                    \
    158159                --output $(BASEDIR)/wget-list \
    159160                stylesheets/wget-list.xsl     \
     
    161162
    162163$(BASEDIR)/wget-list-$(REV): stylesheets/wget-list.xsl $(DOWNLOADS_DEP)
    163         $(Q)xsltproc --nonet --xinclude                   \
     164        $(Q)xsltproc --nonet                               \
     165                --xinclude                            \
    164166                --stringparam profile.revision $(REV) \
    165167                --output $(RENDERTMP)/wget-list.xml   \
    166168                stylesheets/lfs-xsl/profile.xsl       \
    167169                chapter03/chapter03.xml
    168         $(Q)xsltproc --xinclude --nonet                  \
     170
     171        $(Q)xsltproc --nonet                              \
    169172                --output $(BASEDIR)/wget-list-$(REV) \
    170173                stylesheets/wget-list.xsl            \
     
    176179        $(Q)mkdir -p $(BASEDIR)
    177180
    178         $(Q)xsltproc --nonet --xinclude                   \
     181        $(Q)xsltproc --nonet                               \
     182                --xinclude                            \
    179183                --stringparam profile.revision $(REV) \
    180184                --output $(RENDERTMP)/md5sum.xml      \
     
    182186                chapter03/chapter03.xml
    183187
    184         $(Q)xsltproc --xinclude --nonet         \
     188        $(Q)xsltproc --nonet                     \
    185189                --output $(BASEDIR)/md5sums \
    186190                stylesheets/md5sum.xsl      \
Note: See TracChangeset for help on using the changeset viewer.