source: Makefile@ 07c7a8d

Last change on this file since 07c7a8d was da51ba8, checked in by Jim Gifford <jim@…>, 20 years ago

Added: PPC architecture - changelog and todo list

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

  • Property mode set to 100644
File size: 5.3 KB
Line 
1BASEDIR=~/lfs-book
2CHUNK_QUIET=0
3PDF_OUTPUT=LFS-BOOK.pdf
4NOCHUNKS_OUTPUT=LFS-BOOK.html
5XSLROOTDIR=/usr/share/xml/docbook/xsl-stylesheets-current
6ARCH=x86
7
8lfs:
9# top-level index.html
10 xsltproc --nonet --output $(BASEDIR)/index.html stylesheets/top-index.xsl prologue/bookinfo.xml
11
12# x86
13 xsltproc --xinclude --nonet -stringparam profile.condition html -stringparam profile.arch x86 \
14 --output $(BASEDIR)/lfs-html.xml stylesheets/lfs-profile.xsl index.xml
15
16 xsltproc --nonet -stringparam chunk.quietly $(CHUNK_QUIET) \
17 -stringparam base.dir $(BASEDIR)/x86/ stylesheets/lfs-chunked.xsl \
18 $(BASEDIR)/lfs-html.xml
19
20 if [ ! -e $(BASEDIR)/x86/stylesheets ]; then \
21 mkdir -p $(BASEDIR)/x86/stylesheets; \
22 fi;
23 cp stylesheets/*.css $(BASEDIR)/x86/stylesheets
24
25 if [ ! -e $(BASEDIR)/x86/images ]; then \
26 mkdir -p $(BASEDIR)/x86/images; \
27 fi;
28 cp $(XSLROOTDIR)/images/*.png \
29 $(BASEDIR)/x86/images
30 cd $(BASEDIR)/x86/; sed -i -e "s@../stylesheets@stylesheets@g" \
31 *.html
32 cd $(BASEDIR)/x86/; sed -i -e "s@../images@images@g" \
33 *.html
34
35 rm $(BASEDIR)/lfs-html.xml
36
37# raq2
38 xsltproc --xinclude --nonet -stringparam profile.condition html -stringparam profile.arch raq2 \
39 --output $(BASEDIR)/lfs-html.xml stylesheets/lfs-profile.xsl index.xml
40
41 xsltproc --nonet -stringparam chunk.quietly $(CHUNK_QUIET) \
42 -stringparam base.dir $(BASEDIR)/raq2/ stylesheets/lfs-chunked.xsl \
43 $(BASEDIR)/lfs-html.xml
44
45 if [ ! -e $(BASEDIR)/raq2/stylesheets ]; then \
46 mkdir -p $(BASEDIR)/raq2/stylesheets; \
47 fi;
48 cp stylesheets/*.css $(BASEDIR)/raq2/stylesheets
49
50 if [ ! -e $(BASEDIR)/raq2/images ]; then \
51 mkdir -p $(BASEDIR)/raq2/images; \
52 fi;
53 cp $(XSLROOTDIR)/images/*.png \
54 $(BASEDIR)/raq2/images
55 cd $(BASEDIR)/raq2/; sed -i -e "s@../stylesheets@stylesheets@g" \
56 *.html
57 cd $(BASEDIR)/raq2/; sed -i -e "s@../images@images@g" \
58 *.html
59
60 rm $(BASEDIR)/lfs-html.xml
61
62# ppc
63 xsltproc --xinclude --nonet -stringparam profile.condition html -stringparam profile.arch ppc \
64 --output $(BASEDIR)/lfs-html.xml stylesheets/lfs-profile.xsl index.xml
65
66 xsltproc --nonet -stringparam chunk.quietly $(CHUNK_QUIET) \
67 -stringparam base.dir $(BASEDIR)/ppc/ stylesheets/lfs-chunked.xsl \
68 $(BASEDIR)/lfs-html.xml
69
70 if [ ! -e $(BASEDIR)/ppc/stylesheets ]; then \
71 mkdir -p $(BASEDIR)/ppc/stylesheets; \
72 fi;
73 cp stylesheets/*.css $(BASEDIR)/ppc/stylesheets
74
75 if [ ! -e $(BASEDIR)/ppc/images ]; then \
76 mkdir -p $(BASEDIR)/ppc/images; \
77 fi;
78 cp $(XSLROOTDIR)/images/*.png \
79 $(BASEDIR)/ppc/images
80 cd $(BASEDIR)/ppc/; sed -i -e "s@../stylesheets@stylesheets@g" \
81 *.html
82 cd $(BASEDIR)/ppc/; sed -i -e "s@../images@images@g" \
83 *.html
84
85 rm $(BASEDIR)/lfs-html.xml
86
87
88# common stuff
89 for filename in `find $(BASEDIR) -name "*.html"`; do \
90 tidy -config tidy.conf $$filename; \
91 true; \
92 done;
93
94 for filename in `find $(BASEDIR) -name "*.html"`; do \
95 sed -i -e "s@text/html@application/xhtml+xml@g" $$filename; \
96 done;
97
98html:
99 xsltproc --xinclude --nonet -stringparam profile.condition html -stringparam profile.arch $(ARCH) \
100 --output $(BASEDIR)/lfs-html.xml stylesheets/lfs-profile.xsl index.xml
101
102 xsltproc --nonet -stringparam chunk.quietly $(CHUNK_QUIET) \
103 -stringparam base.dir $(BASEDIR)/ stylesheets/lfs-chunked.xsl \
104 $(BASEDIR)/lfs-html.xml
105
106 if [ ! -e $(BASEDIR)/stylesheets ]; then \
107 mkdir -p $(BASEDIR)/stylesheets; \
108 fi;
109 cp stylesheets/*.css $(BASEDIR)/stylesheets
110
111 if [ ! -e $(BASEDIR)/images ]; then \
112 mkdir -p $(BASEDIR)/images; \
113 fi;
114 cp $(XSLROOTDIR)/images/*.png \
115 $(BASEDIR)/images
116 cd $(BASEDIR)/; sed -i -e "s@../stylesheets@stylesheets@g" \
117 *.html
118 cd $(BASEDIR)/; sed -i -e "s@../images@images@g" \
119 *.html
120
121 rm $(BASEDIR)/lfs-html.xml
122
123 for filename in `find $(BASEDIR) -name "*.html"`; do \
124 tidy -config tidy.conf $$filename; \
125 true; \
126 done;
127
128 for filename in `find $(BASEDIR) -name "*.html"`; do \
129 sed -i -e "s@text/html@application/xhtml+xml@g" $$filename; \
130 done;
131
132#
133# This is the old "pdf" target. The old "print" target below has been
134# renamed to "pdf" and will be used. This commented out previous_pdf
135# target can be removed eventually. It'll remain here for a bit for
136# historical reasons
137#
138#previous_pdf:
139# xsltproc --xinclude --nonet --output $(BASEDIR)/lfs.fo stylesheets/lfs-pdf.xsl \
140# index.xml
141# sed -i -e "s/inherit/all/" $(BASEDIR)/lfs.fo
142# fop.sh $(BASEDIR)/lfs.fo $(BASEDIR)/$(PDF_OUTPUT)
143# rm lfs.fo
144
145pdf:
146 xsltproc --xinclude --nonet --stringparam profile.condition pdf -stringparam profile.arch $(ARCH) \
147 --output $(BASEDIR)/lfs-pdf.xml stylesheets/lfs-profile.xsl index.xml
148 xsltproc --nonet --output $(BASEDIR)/lfs-pdf.fo stylesheets/lfs-pdf.xsl \
149 $(BASEDIR)/lfs-pdf.xml
150 sed -i -e "s/inherit/all/" $(BASEDIR)/lfs-pdf.fo
151 fop.sh $(BASEDIR)/lfs-pdf.fo $(BASEDIR)/$(PDF_OUTPUT)
152 rm $(BASEDIR)/lfs-pdf.xml $(BASEDIR)/lfs-pdf.fo
153
154nochunks:
155 xsltproc --xinclude --nonet -stringparam profile.condition html -stringparam profile.arch $(ARCH) \
156 --output $(BASEDIR)/lfs-nochunk.xml stylesheets/lfs-profile.xsl index.xml
157
158 xsltproc --nonet --output $(BASEDIR)/$(NOCHUNKS_OUTPUT) \
159 stylesheets/lfs-nochunks.xsl $(BASEDIR)/lfs-nochunk.xml
160
161 rm $(BASEDIR)/lfs-nochunk.xml
162
163 tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || true
164
165 sed -i -e "s@text/html@application/xhtml+xml@g" \
166 $(BASEDIR)/$(NOCHUNKS_OUTPUT)
167
168validate:
169 xmllint --noout --nonet --xinclude --postvalid index.xml
170
Note: See TracBrowser for help on using the repository browser.