Author: manuel
Date: 2005-04-25 12:43:52 -0600 (Mon, 25 Apr 2005)
New Revision: 5073

Modified:
   branches/multi-arch/BOOK/Makefile
Log:
Fixed the multi-arch Makefile.

Modified: branches/multi-arch/BOOK/Makefile
===================================================================
--- branches/multi-arch/BOOK/Makefile   2005-04-25 16:26:12 UTC (rev 5072)
+++ branches/multi-arch/BOOK/Makefile   2005-04-25 18:43:52 UTC (rev 5073)
@@ -1,7 +1,7 @@
 BASEDIR=~/lfs-book
 CHUNK_QUIET=0
-PDF_OUTPUT=LFS-BOOK.pdf
-NOCHUNKS_OUTPUT=LFS-BOOK.html
+PDF_OUTPUT=LFS-BOOK-$(ARCH).pdf
+NOCHUNKS_OUTPUT=LFS-BOOK-$(ARCH).html
 XSLROOTDIR=/usr/share/xml/docbook/xsl-stylesheets-current
 ARCH=x86
 
@@ -11,7 +11,8 @@
 
 # x86
        xsltproc --xinclude --nonet -stringparam profile.condition html 
-stringparam profile.arch x86 \
-         -stringparam base.dir $(BASEDIR)/x86/ stylesheets/lfs-chunked.xsl 
index.xml
+         -stringparam chunk.quietly $(CHUNK_QUIET)  -stringparam base.dir 
$(BASEDIR)/x86/ \
+               stylesheets/lfs-chunked.xsl index.xml
 
        if [ ! -e $(BASEDIR)/x86/stylesheets ]; then \
          mkdir -p $(BASEDIR)/x86/stylesheets; \
@@ -30,7 +31,8 @@
 
 # alpha
        xsltproc --xinclude --nonet -stringparam profile.condition html 
-stringparam profile.arch alpha \
-         -stringparam base.dir $(BASEDIR)/alpha/ stylesheets/lfs-chunked.xsl 
index.xml
+         -stringparam chunk.quietly $(CHUNK_QUIET)  -stringparam base.dir 
$(BASEDIR)/alpha/ \
+               stylesheets/lfs-chunked.xsl index.xml
 
        if [ ! -e $(BASEDIR)/alpha/stylesheets ]; then \
          mkdir -p $(BASEDIR)/alpha/stylesheets; \
@@ -49,7 +51,8 @@
 
 # ppc
        xsltproc --xinclude --nonet -stringparam profile.condition html 
-stringparam profile.arch ppc \
-         -stringparam base.dir $(BASEDIR)/ppc/ stylesheets/lfs-chunked.xsl 
index.xml
+         -stringparam chunk.quietly $(CHUNK_QUIET)  -stringparam base.dir 
$(BASEDIR)/ppc/ \
+               stylesheets/lfs-chunked.xsl index.xml
 
        if [ ! -e $(BASEDIR)/ppc/stylesheets ]; then \
          mkdir -p $(BASEDIR)/ppc/stylesheets; \
@@ -68,7 +71,8 @@
 
 # raq2
        xsltproc --xinclude --nonet -stringparam profile.condition html 
-stringparam profile.arch raq2 \
-         -stringparam base.dir $(BASEDIR)/raq2/ stylesheets/lfs-chunked.xsl 
index.xml
+         -stringparam chunk.quietly $(CHUNK_QUIET)  -stringparam base.dir 
$(BASEDIR)/raq2/ \
+               stylesheets/lfs-chunked.xsl index.xml
 
        if [ ! -e $(BASEDIR)/raq2/stylesheets ]; then \
          mkdir -p $(BASEDIR)/raq2/stylesheets; \
@@ -97,29 +101,30 @@
 
 html:
        xsltproc --xinclude --nonet -stringparam profile.condition html 
-stringparam profile.arch $(ARCH) \
-         -stringparam base.dir $(BASEDIR)/ stylesheets/lfs-chunked.xsl 
index.xml
+         -stringparam chunk.quietly $(CHUNK_QUIET)  -stringparam base.dir 
$(BASEDIR)/$(ARCH)/ \
+               stylesheets/lfs-chunked.xsl index.xml
 
-       if [ ! -e $(BASEDIR)/stylesheets ]; then \
-         mkdir -p $(BASEDIR)/stylesheets; \
+       if [ ! -e $(BASEDIR)/$(ARCH)/stylesheets ]; then \
+         mkdir -p $(BASEDIR)/$(ARCH)/stylesheets; \
        fi;
-       cp stylesheets/*.css $(BASEDIR)/stylesheets
+       cp stylesheets/*.css $(BASEDIR)/$(ARCH)/stylesheets
 
-       if [ ! -e $(BASEDIR)/images ]; then \
-         mkdir -p $(BASEDIR)/images; \
+       if [ ! -e $(BASEDIR)/$(ARCH)/images ]; then \
+         mkdir -p $(BASEDIR)/$(ARCH)/images; \
        fi;
        cp $(XSLROOTDIR)/images/*.png \
-         $(BASEDIR)/images
-       cd $(BASEDIR)/; sed -i -e "[EMAIL PROTECTED]/[EMAIL PROTECTED]@g" \
+         $(BASEDIR)/$(ARCH)/images
+       cd $(BASEDIR)/$(ARCH)/; sed -i -e "[EMAIL PROTECTED]/[EMAIL 
PROTECTED]@g" \
          *.html
-       cd $(BASEDIR)/; sed -i -e "[EMAIL PROTECTED]/[EMAIL PROTECTED]@g" \
+       cd $(BASEDIR)/$(ARCH)/; sed -i -e "[EMAIL PROTECTED]/[EMAIL 
PROTECTED]@g" \
          *.html
 
-       for filename in `find $(BASEDIR) -name "*.html"`; do \
+       for filename in `find $(BASEDIR)/$(ARCH) -name "*.html"`; do \
          tidy -config tidy.conf $$filename; \
          true; \
        done;
 
-       for filename in `find $(BASEDIR) -name "*.html"`; do \
+       for filename in `find $(BASEDIR)/$(ARCH)/ -name "*.html"`; do \
          sed -i -e "[EMAIL PROTECTED]/[EMAIL PROTECTED]/[EMAIL PROTECTED]" 
$$filename; \
        done;
 

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to