- Timestamp:
- 09/10/10 16:43:22 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/adm/makefile
r104 r105 114 114 LIST_SRCPHP_RST = \ 115 115 $(shell echo "$(LIST_SRCPHP)" | \ 116 sed -e "s+$(DIRSRC)+$(DIRTMP)/ +g" \116 sed -e "s+$(DIRSRC)+$(DIRTMP)/sphinx_tmpdir/manuals+g" \ 117 117 -e "s+\.php+.php.rst+g") 118 119 LIST_SRCPHP_R2W = \120 $(shell echo "$(LIST_SRCPHP)" | \121 sed -e "s+$(DIRSRC)+$(DIRTMP)/rest2web_tmpdir+g" \122 -e "s+\.php+.php.txt+g")123 124 118 125 119 LIST_SRCPHP_TROFF = \ … … 127 121 sed -e "s+$(DIRSRC)+$(DIRWWW)/manuals/man/man1/+g" \ 128 122 -e "s+\.php+.php.1+g") 129 130 LIST_SRCPHP_HTML = \131 $(shell echo "$(LIST_SRCPHP)" | \132 sed -e "s+$(DIRSRC)+$(DIRWWW)/manuals/html/many/+g" \133 -e "s+\.php+.php.html+g")134 135 LIST_SRCPHP_PDF = \136 $(shell echo "$(LIST_SRCPHP)" | \137 sed -e "s+$(DIRSRC)+$(DIRWWW)/manuals/pdf/many/+g" \138 -e "s+\.php+.php.pdf+g")139 123 140 124 LIST_SRCXSL = \ … … 157 141 LIST_SRCXSL_RST = \ 158 142 $(shell echo "$(LIST_SRCXSL)" | \ 159 sed -e "s+$(DIRSRC)+$(DIRTMP) +g" \143 sed -e "s+$(DIRSRC)+$(DIRTMP)/sphinx_tmpdir/manuals+g" \ 160 144 -e "s+\.xsl+.xsl.rst+g") 161 162 LIST_SRCXSL_R2W = \163 $(shell echo "$(LIST_SRCXSL)" | \164 sed -e "s+$(DIRSRC)+$(DIRTMP)/rest2web_tmpdir+g" \165 -e "s+\.xsl+.xsl.txt+g")166 145 167 146 LIST_SRCXSL_TROFF = \ … … 169 148 sed -e "s+$(DIRSRC)+$(DIRWWW)/manuals/man/man1/+g" \ 170 149 -e "s+\.xsl+.xsl.1+g") 171 172 LIST_SRCXSL_HTML = \173 $(shell echo "$(LIST_SRCXSL)" | \174 sed -e "s+$(DIRSRC)+$(DIRWWW)/manuals/html/many/+g" \175 -e "s+\.xsl+.xsl.html+g")176 177 LIST_SRCXSL_PDF = \178 $(shell echo "$(LIST_SRCXSL)" | \179 sed -e "s+$(DIRSRC)+$(DIRWWW)/manuals/pdf/many/+g" \180 -e "s+\.xsl+.xsl.pdf+g")181 150 182 151 LIST_SRCSH = \ … … 191 160 LIST_SRCSH_RST = \ 192 161 $(shell echo "$(LIST_SRCSH)" | \ 193 sed -e "s+$(DIRSRC)+$(DIRTMP) +g" \162 sed -e "s+$(DIRSRC)+$(DIRTMP)/sphinx_tmpdir/manuals+g" \ 194 163 -e "s+\.sh+.sh.rst+g") 195 196 LIST_SRCSH_R2W = \197 $(shell echo "$(LIST_SRCSH)" | \198 sed -e "s+$(DIRSRC)+$(DIRTMP)/rest2web_tmpdir+g" \199 -e "s+\.sh+.sh.txt+g")200 164 201 165 LIST_SRCSH_TROFF = \ … … 203 167 sed -e "s+$(DIRSRC)+$(DIRWWW)/manuals/man/man1/+g" \ 204 168 -e "s+\.sh+.sh.1+g") 205 206 LIST_SRCSH_HTML = \207 $(shell echo "$(LIST_SRCSH)" | \208 sed -e "s+$(DIRSRC)+$(DIRWWW)/manuals/html/many/+g" \209 -e "s+\.sh+.sh.html+g")210 211 LIST_SRCSH_PDF = \212 $(shell echo "$(LIST_SRCSH)" | \213 sed -e "s+$(DIRSRC)+$(DIRWWW)/manuals/pdf/many/+g" \214 -e "s+\.sh+.sh.pdf+g")215 169 216 170 .PHONY : \ … … 226 180 man \ 227 181 man_troff_sphinx \ 228 man_html \229 man_html_sphinx \230 man_html_sphinx_one \231 man_pdf \232 man_pdf_sphinx182 html \ 183 html_sphinx \ 184 html_sphinx_one \ 185 pdf \ 186 pdf_sphinx 233 187 234 188 help : … … 251 205 before : 252 206 @mkdir -p $(DIRWWW)/manuals/man/man1/ 253 @mkdir -p $(DIRWWW)/manuals/html/rest2web/254 @mkdir -p $(DIRWWW)/manuals/html/rest2web/css/255 207 @mkdir -p $(DIRWWW)/manuals/html/sphinx/ 256 208 @mkdir -p $(DIRWWW)/manuals/pdf/sphinx/ 257 209 @mkdir -p $(DIRTMP)/sphinx_tmpdir/doctrees/ 258 @mkdir -p $(DIRTMP)/ rest2web_tmpdir/210 @mkdir -p $(DIRTMP)/sphinx_tmpdir/manuals/ 259 211 260 212 install : … … 270 222 cleantmp : 271 223 -@rm -f $(DIRTMP)/all.xml 272 -@rm -f $(DIRTMP)/*.rst273 224 -@rm -f $(DIRTMP)/*.tex 274 -@rm -rf $(DIRTMP)/rest2web_tmpdir/275 -@rm -f $(DIRTMP)/rest2web.log276 225 -@rm -rf $(DIRTMP)/sphinx_tmpdir/ 277 226 -@rm -f $(DIRTMP)/sphinx_*.log … … 296 245 man : \ 297 246 man_troff \ 298 man_html \299 man_pdf247 html \ 248 pdf 300 249 301 250 man_troff : \ … … 309 258 $(LIST_SRCXSL_RST) \ 310 259 $(LIST_SRCPHP_RST) 311 @cp $(LIST_SRCSH_RST) $(DIRTMP)/sphinx_tmpdir/312 @cp $(LIST_SRCXSL_RST) $(DIRTMP)/sphinx_tmpdir/313 @cp $(LIST_SRCPHP_RST) $(DIRTMP)/sphinx_tmpdir/314 260 @sphinx-build -b man -c $(DIRADM)/sphinx \ 315 261 -d $(DIRTMP)/sphinx_tmpdir/doctrees \ … … 318 264 $(DIRWWW)/manuals/man/man1/ 319 265 320 man_html : \321 man_html_sphinx \322 man_html_sphinx_one323 324 man_html_sphinx : \266 html : \ 267 html_sphinx \ 268 html_sphinx_one 269 270 html_sphinx : \ 325 271 $(DIRADM)/sphinx/conf.py \ 326 272 $(DIRTMP)/sphinx_tmpdir/index.rst \ … … 328 274 $(LIST_SRCXSL_RST) \ 329 275 $(LIST_SRCPHP_RST) 330 @cp $(LIST_SRCSH_RST) $(DIRTMP)/sphinx_tmpdir/331 @cp $(LIST_SRCXSL_RST) $(DIRTMP)/sphinx_tmpdir/332 @cp $(LIST_SRCPHP_RST) $(DIRTMP)/sphinx_tmpdir/333 276 @sphinx-build -b html -c $(DIRADM)/sphinx \ 334 277 -d $(DIRTMP)/sphinx_tmpdir/doctrees \ … … 337 280 $(DIRWWW)/manuals/html/sphinx/ 338 281 339 man_html_sphinx_one : \282 html_sphinx_one : \ 340 283 $(DIRADM)/sphinx/conf.py \ 341 284 $(DIRTMP)/sphinx_tmpdir/index.rst \ … … 343 286 $(LIST_SRCXSL_RST) \ 344 287 $(LIST_SRCPHP_RST) 345 @cp $(LIST_SRCSH_RST) $(DIRTMP)/sphinx_tmpdir/346 @cp $(LIST_SRCXSL_RST) $(DIRTMP)/sphinx_tmpdir/347 @cp $(LIST_SRCPHP_RST) $(DIRTMP)/sphinx_tmpdir/348 288 @sphinx-build -b singlehtml -c $(DIRADM)/sphinx \ 349 289 -d $(DIRTMP)/sphinx_tmpdir/doctrees \ … … 352 292 $(DIRWWW)/manuals/html/sphinx_one/ 353 293 354 man_pdf : \355 man_pdf_sphinx356 357 man_pdf_sphinx : \294 pdf : \ 295 pdf_sphinx 296 297 pdf_sphinx : \ 358 298 $(DIRADM)/sphinx/conf.py \ 359 299 $(DIRTMP)/sphinx_tmpdir/index.rst \ … … 361 301 $(LIST_SRCXSL_RST) \ 362 302 $(LIST_SRCPHP_RST) 363 @cp $(LIST_SRCSH_RST) $(DIRTMP)/sphinx_tmpdir/364 @cp $(LIST_SRCXSL_RST) $(DIRTMP)/sphinx_tmpdir/365 @cp $(LIST_SRCPHP_RST) $(DIRTMP)/sphinx_tmpdir/366 303 @sphinx-build -b latex -c $(DIRADM)/sphinx \ 367 304 -d $(DIRTMP)/sphinx_tmpdir/doctrees \ … … 388 325 @for file in $(LIST_SRCSH); \ 389 326 do \ 390 echo " $$(basename $${file})"; \327 echo " manuals/$$(basename $${file})"; \ 391 328 done >> $@ 392 329 @echo " " >> $@ … … 399 336 @for file in $(LIST_SRCXSL); \ 400 337 do \ 401 echo " $$(basename $${file})"; \338 echo " manuals/$$(basename $${file})"; \ 402 339 done >> $@ 403 340 @echo " " >> $@ … … 410 347 @for file in $(LIST_SRCPHP); \ 411 348 do \ 412 echo " $$(basename $${file})"; \349 echo " manuals/$$(basename $${file})"; \ 413 350 done >> $@ 414 351 @echo " " >> $@ … … 418 355 @echo " " >> $@ 419 356 420 $(DIRTMP)/ %.sh.rst : $(DIRSRC)/%.sh357 $(DIRTMP)/sphinx_tmpdir/manuals/%.sh.rst : $(DIRSRC)/%.sh $(DIRADM)/extract_rst.sh 421 358 @$(DIRADM)/extract_rst.sh -i $< -l sh -o $@ 422 359 423 $(DIRTMP)/ %.xsl.rst : $(DIRSRC)/%.xsl360 $(DIRTMP)/sphinx_tmpdir/manuals/%.xsl.rst : $(DIRSRC)/%.xsl $(DIRADM)/extract_rst.sh 424 361 @$(DIRADM)/extract_rst.sh -i $< -l xml -o $@ 425 362 426 $(DIRTMP)/ %.php.rst : $(DIRSRC)/%.php363 $(DIRTMP)/sphinx_tmpdir/manuals/%.php.rst : $(DIRSRC)/%.php $(DIRADM)/extract_rst.sh 427 364 @$(DIRADM)/extract_rst.sh -i $< -l php -o $@ 428 365
Note: See TracChangeset
for help on using the changeset viewer.