Changeset 1118b17 for Makefile


Ignore:
Timestamp:
05/24/2016 09:24:59 PM (8 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
77ab7f3
Parents:
11ebea6
Message:

Create branches/merge in svn repo fo rtesting of merged LFS books

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/merge@11073 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r11ebea6 r1118b17  
    11BASEDIR = ~/lfs-book
     2SYSDDIR = ~/lfs-systemd
    23DUMPDIR = ~/lfs-commands
    34RENDERTMP = $(HOME)/tmp
     
    1415endif
    1516
    16 lfs: validate profile-html
     17sysv: validate profile-html
     18        $(Q)xsltproc --nonet                   \
     19      --output $(RENDERTMP)/lfs-html2.xml \
     20      --stringparam profile.revision sysv \
     21      stylesheets/lfs-xsl/profile.xsl     \
     22      $(RENDERTMP)/lfs-html.xml
     23
    1724        @echo "Generating chunked XHTML files..."
    18         $(Q)xsltproc --nonet -stringparam chunk.quietly $(CHUNK_QUIET) \
    19           -stringparam rootid "$(ROOT_ID)" -stringparam base.dir $(BASEDIR)/ \
    20           stylesheets/lfs-chunked.xsl $(RENDERTMP)/lfs-html.xml
     25        $(Q)xsltproc --nonet                          \
     26      --stringparam chunk.quietly $(CHUNK_QUIET) \
     27      --stringparam rootid "$(ROOT_ID)"          \
     28      --stringparam base.dir $(BASEDIR)/         \
     29      stylesheets/lfs-chunked.xsl                \
     30      $(RENDERTMP)/lfs-html2.xml
    2131
    2232        @echo "Copying CSS code and images..."
     
    3848          true; \
    3949          /bin/bash obfuscate.sh $$filename; \
    40           sed -i -e "s@text/html@application/xhtml+xml@g" $$filename; \
     50          sed -e "s@text/html@application/xhtml+xml@g" \
     51         -e "s/\xa9/\&copy;/ "                    \
     52         -i $$filename; \
    4153        done;
    4254
    4355        $(Q)$(MAKE) $(BASEDIR)/wget-list $(BASEDIR)/md5sums
     56
     57systemd: validated profile-html
     58        $(Q)xsltproc --nonet                      \
     59      --output $(RENDERTMP)/lfs-html2.xml    \
     60      --stringparam profile.revision systemd \
     61      stylesheets/lfs-xsl/profile.xsl        \
     62      $(RENDERTMP)/lfs-html.xml
     63
     64        @echo "Generating chunked XHTML files..."
     65        $(Q)xsltproc --nonet                          \
     66      --stringparam chunk.quietly $(CHUNK_QUIET) \
     67      --stringparam rootid "$(ROOT_ID)"          \
     68      --stringparam base.dir $(SYSDDIR)/         \
     69      stylesheets/lfs-chunked.xsl                \
     70      $(RENDERTMP)/lfs-html2.xml
     71
     72        @echo "Copying CSS code and images..."
     73        $(Q)if [ ! -e $(SYSDDIR)/stylesheets ]; then \
     74          mkdir -p $(SYSDDIR)/stylesheets; \
     75        fi;
     76        $(Q)cp stylesheets/lfs-xsl/*.css $(SYSDDIR)/stylesheets
     77
     78        $(Q)if [ ! -e $(SYSDDIR)/images ]; then \
     79          mkdir -p $(SYSDDIR)/images; \
     80        fi;
     81        $(Q)cp images/*.png $(SYSDDIR)/images
     82
     83        @echo "Running Tidy and obfuscate.sh..."
     84        $(Q)for filename in `find $(SYSDDIR) -name "*.html"`; do \
     85          tidy -config tidy.conf $$filename; \
     86          true; \
     87          /bin/bash obfuscate.sh $$filename; \
     88          sed -e "s@text/html@application/xhtml+xml@g" \
     89         -e "s/\xa9/\&copy;/ "                    \
     90         -i $$filename; \
     91        done;
     92
     93#       $(Q)$(MAKE) $(SYSDDIR)/wget-list $(SYSDDIR)/md5sumsd
    4494
    4595pdf: validate
     
    95145        @echo "Validation complete."
    96146
    97 profile-html: validate
     147validated: tmpdir
     148        @echo "Validating the book..."
     149        $(Q)xmllint --nonet --noent --xinclude --postvalid \
     150          -o $(RENDERTMP)/lfs-full.xml indexd.xml
     151        @echo "Validation complete."
     152
     153profile-html:
    98154        @echo "Generating profiled XML for XHTML..."
    99155        $(Q)xsltproc --nonet --stringparam profile.condition html \
     
    118174       $(BASEDIR)/md5sums
    119175
     176md5sumsd: $(SYSDDIR)/md5sumsd
     177$(SYSDDIR)/md5sumsd: stylesheets/wget-list.xsl chapter03/chapter03.xml packages.ent patches.ent
     178        @echo "Generating md5sum file..."
     179        $(Q)mkdir -p $(SYSDDIR)
     180        $(Q)xsltproc --xinclude --nonet --output $(SYSDDIR)/md5sums \
     181            stylesheets/md5sum.xsl chapter03/chapter03.xml
     182
    120183dump-commands: validate
    121184        @echo "Dumping book commands..."
Note: See TracChangeset for help on using the changeset viewer.