Changeset 8ccf082a for Makefile


Ignore:
Timestamp:
01/31/2024 07:22:48 PM (8 months ago)
Author:
Thomas Trepl <thomas@…>
Branches:
multilib, xry111/multilib
Children:
ac1639c
Parents:
f6a43f6 (diff), a4eaba6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Automatic merge of trunk into multilib

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    rf6a43f6 r8ccf082a  
    11# vim:ts=3
    2 #BASEDIR = ~/lfs-book
    3 #SYSDDIR = ~/lfs-systemd
    4 #DUMPDIR = ~/lfs-commands
    52RENDERTMP = $(HOME)/tmp
    63CHUNK_QUIET = 1
     
    2522
    2623ifeq ($(REV), sysv)
    27   BASEDIR         ?= ~/public_html/lfs-book
     24  BASEDIR         ?= $(HOME)/public_html/lfs-book
    2825  PDF_OUTPUT      ?= LFS-BOOK.pdf
    2926  NOCHUNKS_OUTPUT ?= LFS-BOOK.html
    30   DUMPDIR         ?= ~/lfs-commands
     27  DUMPDIR         ?= $(HOME)/lfs-commands
    3128else
    32   BASEDIR         ?= ~/public_html/lfs-systemd
     29  BASEDIR         ?= $(HOME)/public_html/lfs-systemd
    3330  PDF_OUTPUT      ?= LFS-SYSD-BOOK.pdf
    3431  NOCHUNKS_OUTPUT ?= LFS-SYSD-BOOK.html
    35   DUMPDIR         ?= ~/lfs-sysd-commands
     32  DUMPDIR         ?= $(HOME)/lfs-sysd-commands
    3633endif
    3734
     
    6158        $(Q)mkdir -p $(BASEDIR)/stylesheets
    6259        $(Q)cp stylesheets/lfs-xsl/*.css $(BASEDIR)/stylesheets
    63         $(Q)sed -i 's|../stylesheet|stylesheet|' $(BASEDIR)/index.html
     60        $(Q)sed -e 's|../stylesheet|stylesheet|' \
     61           -i $(BASEDIR)/index.html
    6462
    6563        $(Q)mkdir -p $(BASEDIR)/images
     
    6967        $(Q)for filename in `find $(BASEDIR) -name "*.html"`; do \
    7068         tidy -config tidy.conf $$filename;           \
    71          true;                                        \
    7269         /bin/bash obfuscate.sh $$filename;           \
    73          sed -e "s@text/html@application/xhtml+xml@g" \
     70         sed -e "s|text/html|application/xhtml+xml|g" \
    7471             -i $$filename;                           \
    75    done;
     72       done
    7673
    7774        $(Q)$(MAKE) --no-print-directory wget-list md5sums
     
    112109                stylesheets/lfs-nochunks.xsl           \
    113110                $(RENDERTMP)/lfs-html.xml
    114 #                $(RENDERTMP)/lfs-html2.xml
    115111
    116112        @echo "Running Tidy..."
    117         $(Q)tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || true
     113        $(Q)tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || test $$? -le 1
    118114
    119115        @echo "Running obfuscate.sh..."
    120         $(Q)bash obfuscate.sh                                $(BASEDIR)/$(NOCHUNKS_OUTPUT)
    121         $(Q)sed -i -e "s@text/html@application/xhtml+xml@g"  $(BASEDIR)/$(NOCHUNKS_OUTPUT)
    122         $(Q)sed -i -e "s@../wget-list@wget-list@"            $(BASEDIR)/$(NOCHUNKS_OUTPUT)
    123         $(Q)sed -i -e "s@../md5sums@md5sums@"                $(BASEDIR)/$(NOCHUNKS_OUTPUT)
     116        $(Q)bash obfuscate.sh      $(BASEDIR)/$(NOCHUNKS_OUTPUT)
     117        $(Q)sed -e "s|text/html|application/xhtml+xml|g" \
     118           -e "s|../wget-list|wget-list|"           \
     119           -e "s|../md5sums|md5sums|"               \
     120           -i $(BASEDIR)/$(NOCHUNKS_OUTPUT)
    124121
    125122        @echo "Output at $(BASEDIR)/$(NOCHUNKS_OUTPUT)"
     
    140137        $(Q)xsltproc --nonet                               \
    141138                --xinclude                            \
    142                 --output $(RENDERTMP)/lfs-html2.xml   \
    143139                --stringparam profile.revision $(REV) \
    144140                --stringparam profile.arch $(ARCH)    \
     141                --output $(RENDERTMP)/lfs-html2.xml   \
    145142                stylesheets/lfs-xsl/profile.xsl       \
    146143                index.xml
    147144
    148145        @echo "Validating the book..."
    149         $(Q)xmllint --nonet                      \
    150                --noent                      \
    151                --postvalid                  \
    152                -o $(RENDERTMP)/lfs-full.xml \
     146        $(Q)xmllint --nonet                            \
     147               --encode UTF-8                     \
     148               --postvalid                        \
     149               --output $(RENDERTMP)/lfs-full.xml \
    153150               $(RENDERTMP)/lfs-html2.xml
    154151
     
    172169        @echo "Generating consolidated wget list at $(BASEDIR)/wget-list ..."
    173170        $(Q)mkdir -p $(BASEDIR)
    174         $(Q)xsltproc --xinclude --nonet            \
     171        $(Q)xsltproc --nonet                       \
     172                --xinclude                    \
    175173                --output $(BASEDIR)/wget-list \
    176174                stylesheets/wget-list.xsl     \
     
    178176
    179177$(BASEDIR)/wget-list-$(REV): stylesheets/wget-list.xsl $(DOWNLOADS_DEP)
    180         $(Q)xsltproc --nonet --xinclude                   \
     178        $(Q)xsltproc --nonet                               \
     179                --xinclude                            \
    181180                --stringparam profile.revision $(REV) \
    182181                --output $(RENDERTMP)/wget-list.xml   \
    183182                stylesheets/lfs-xsl/profile.xsl       \
    184183                chapter03/chapter03.xml
    185         $(Q)xsltproc --xinclude --nonet                  \
     184
     185        $(Q)xsltproc --nonet                              \
    186186                --output $(BASEDIR)/wget-list-$(REV) \
    187187                stylesheets/wget-list.xsl            \
     
    193193        $(Q)mkdir -p $(BASEDIR)
    194194
    195         $(Q)xsltproc --nonet --xinclude                   \
     195        $(Q)xsltproc --nonet                               \
     196                --xinclude                            \
    196197                --stringparam profile.revision $(REV) \
    197198                --stringparam profile.arch $(ARCH)    \
     
    200201                chapter03/chapter03.xml
    201202
    202         $(Q)xsltproc --xinclude --nonet         \
     203        $(Q)xsltproc --nonet                     \
    203204                --output $(BASEDIR)/md5sums \
    204205                stylesheets/md5sum.xsl      \
Note: See TracChangeset for help on using the changeset viewer.