Changeset c579a8b


Ignore:
Timestamp:
04/25/2005 06:43:52 PM (19 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Children:
08e0d3ca
Parents:
4191cef
Message:

Fixed the multi-arch Makefile.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multi-arch/BOOK@5073 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r4191cef rc579a8b  
    11BASEDIR=~/lfs-book
    22CHUNK_QUIET=0
    3 PDF_OUTPUT=LFS-BOOK.pdf
    4 NOCHUNKS_OUTPUT=LFS-BOOK.html
     3PDF_OUTPUT=LFS-BOOK-$(ARCH).pdf
     4NOCHUNKS_OUTPUT=LFS-BOOK-$(ARCH).html
    55XSLROOTDIR=/usr/share/xml/docbook/xsl-stylesheets-current
    66ARCH=x86
     
    1212# x86
    1313        xsltproc --xinclude --nonet -stringparam profile.condition html -stringparam profile.arch x86 \
    14           -stringparam base.dir $(BASEDIR)/x86/ stylesheets/lfs-chunked.xsl index.xml
     14          -stringparam chunk.quietly $(CHUNK_QUIET)  -stringparam base.dir $(BASEDIR)/x86/ \
     15                stylesheets/lfs-chunked.xsl index.xml
    1516
    1617        if [ ! -e $(BASEDIR)/x86/stylesheets ]; then \
     
    3132# alpha
    3233        xsltproc --xinclude --nonet -stringparam profile.condition html -stringparam profile.arch alpha \
    33           -stringparam base.dir $(BASEDIR)/alpha/ stylesheets/lfs-chunked.xsl index.xml
     34          -stringparam chunk.quietly $(CHUNK_QUIET)  -stringparam base.dir $(BASEDIR)/alpha/ \
     35                stylesheets/lfs-chunked.xsl index.xml
    3436
    3537        if [ ! -e $(BASEDIR)/alpha/stylesheets ]; then \
     
    5052# ppc
    5153        xsltproc --xinclude --nonet -stringparam profile.condition html -stringparam profile.arch ppc \
    52           -stringparam base.dir $(BASEDIR)/ppc/ stylesheets/lfs-chunked.xsl index.xml
     54          -stringparam chunk.quietly $(CHUNK_QUIET)  -stringparam base.dir $(BASEDIR)/ppc/ \
     55                stylesheets/lfs-chunked.xsl index.xml
    5356
    5457        if [ ! -e $(BASEDIR)/ppc/stylesheets ]; then \
     
    6972# raq2
    7073        xsltproc --xinclude --nonet -stringparam profile.condition html -stringparam profile.arch raq2 \
    71           -stringparam base.dir $(BASEDIR)/raq2/ stylesheets/lfs-chunked.xsl index.xml
     74          -stringparam chunk.quietly $(CHUNK_QUIET)  -stringparam base.dir $(BASEDIR)/raq2/ \
     75                stylesheets/lfs-chunked.xsl index.xml
    7276
    7377        if [ ! -e $(BASEDIR)/raq2/stylesheets ]; then \
     
    98102html:
    99103        xsltproc --xinclude --nonet -stringparam profile.condition html -stringparam profile.arch $(ARCH) \
    100           -stringparam base.dir $(BASEDIR)/ stylesheets/lfs-chunked.xsl index.xml
     104          -stringparam chunk.quietly $(CHUNK_QUIET)  -stringparam base.dir $(BASEDIR)/$(ARCH)/ \
     105                stylesheets/lfs-chunked.xsl index.xml
    101106
    102         if [ ! -e $(BASEDIR)/stylesheets ]; then \
    103           mkdir -p $(BASEDIR)/stylesheets; \
     107        if [ ! -e $(BASEDIR)/$(ARCH)/stylesheets ]; then \
     108          mkdir -p $(BASEDIR)/$(ARCH)/stylesheets; \
    104109        fi;
    105         cp stylesheets/*.css $(BASEDIR)/stylesheets
     110        cp stylesheets/*.css $(BASEDIR)/$(ARCH)/stylesheets
    106111
    107         if [ ! -e $(BASEDIR)/images ]; then \
    108           mkdir -p $(BASEDIR)/images; \
     112        if [ ! -e $(BASEDIR)/$(ARCH)/images ]; then \
     113          mkdir -p $(BASEDIR)/$(ARCH)/images; \
    109114        fi;
    110115        cp $(XSLROOTDIR)/images/*.png \
    111           $(BASEDIR)/images
    112         cd $(BASEDIR)/; sed -i -e "s@../stylesheets@stylesheets@g" \
     116          $(BASEDIR)/$(ARCH)/images
     117        cd $(BASEDIR)/$(ARCH)/; sed -i -e "s@../stylesheets@stylesheets@g" \
    113118          *.html
    114         cd $(BASEDIR)/; sed -i -e "s@../images@images@g" \
     119        cd $(BASEDIR)/$(ARCH)/; sed -i -e "s@../images@images@g" \
    115120          *.html
    116121
    117         for filename in `find $(BASEDIR) -name "*.html"`; do \
     122        for filename in `find $(BASEDIR)/$(ARCH) -name "*.html"`; do \
    118123          tidy -config tidy.conf $$filename; \
    119124          true; \
    120125        done;
    121126
    122         for filename in `find $(BASEDIR) -name "*.html"`; do \
     127        for filename in `find $(BASEDIR)/$(ARCH)/ -name "*.html"`; do \
    123128          sed -i -e "s@text/html@application/xhtml+xml@g" $$filename; \
    124129        done;
Note: See TracChangeset for help on using the changeset viewer.