Legend:
- Unmodified
- Added
- Removed
-
Makefile
r4191cef rc579a8b 1 1 BASEDIR=~/lfs-book 2 2 CHUNK_QUIET=0 3 PDF_OUTPUT=LFS-BOOK .pdf4 NOCHUNKS_OUTPUT=LFS-BOOK .html3 PDF_OUTPUT=LFS-BOOK-$(ARCH).pdf 4 NOCHUNKS_OUTPUT=LFS-BOOK-$(ARCH).html 5 5 XSLROOTDIR=/usr/share/xml/docbook/xsl-stylesheets-current 6 6 ARCH=x86 … … 12 12 # x86 13 13 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 15 16 16 17 if [ ! -e $(BASEDIR)/x86/stylesheets ]; then \ … … 31 32 # alpha 32 33 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 34 36 35 37 if [ ! -e $(BASEDIR)/alpha/stylesheets ]; then \ … … 50 52 # ppc 51 53 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 53 56 54 57 if [ ! -e $(BASEDIR)/ppc/stylesheets ]; then \ … … 69 72 # raq2 70 73 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 72 76 73 77 if [ ! -e $(BASEDIR)/raq2/stylesheets ]; then \ … … 98 102 html: 99 103 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 101 106 102 if [ ! -e $(BASEDIR)/ stylesheets ]; then \103 mkdir -p $(BASEDIR)/ stylesheets; \107 if [ ! -e $(BASEDIR)/$(ARCH)/stylesheets ]; then \ 108 mkdir -p $(BASEDIR)/$(ARCH)/stylesheets; \ 104 109 fi; 105 cp stylesheets/*.css $(BASEDIR)/ stylesheets110 cp stylesheets/*.css $(BASEDIR)/$(ARCH)/stylesheets 106 111 107 if [ ! -e $(BASEDIR)/ images ]; then \108 mkdir -p $(BASEDIR)/ images; \112 if [ ! -e $(BASEDIR)/$(ARCH)/images ]; then \ 113 mkdir -p $(BASEDIR)/$(ARCH)/images; \ 109 114 fi; 110 115 cp $(XSLROOTDIR)/images/*.png \ 111 $(BASEDIR)/ images112 cd $(BASEDIR)/ ; sed -i -e "s@../stylesheets@stylesheets@g" \116 $(BASEDIR)/$(ARCH)/images 117 cd $(BASEDIR)/$(ARCH)/; sed -i -e "s@../stylesheets@stylesheets@g" \ 113 118 *.html 114 cd $(BASEDIR)/ ; sed -i -e "s@../images@images@g" \119 cd $(BASEDIR)/$(ARCH)/; sed -i -e "s@../images@images@g" \ 115 120 *.html 116 121 117 for filename in `find $(BASEDIR) -name "*.html"`; do \122 for filename in `find $(BASEDIR)/$(ARCH) -name "*.html"`; do \ 118 123 tidy -config tidy.conf $$filename; \ 119 124 true; \ 120 125 done; 121 126 122 for filename in `find $(BASEDIR) -name "*.html"`; do \127 for filename in `find $(BASEDIR)/$(ARCH)/ -name "*.html"`; do \ 123 128 sed -i -e "s@text/html@application/xhtml+xml@g" $$filename; \ 124 129 done;
Note:
See TracChangeset
for help on using the changeset viewer.