Changeset 87
- Timestamp:
- 09/10/10 17:00:19 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/adm/makefile
r84 r87 21 21 # $Id$ 22 22 # 23 # - fplod 20100910T145305Z aedon.locean-ipsl.upmc.fr (Darwin) 24 # 25 # 26 # * try to improve dependencies 27 # * clean useless macros 28 23 29 # - fplod 20100712T140824Z aedon.locean-ipsl.upmc.fr (Darwin) 24 30 # … … 142 148 LIST_SRCSH_RST = \ 143 149 $(shell echo "$(LIST_SRCSH)" | \ 144 sed -e "s+$(DIRSRC)+$(DIRTMP) +g" \150 sed -e "s+$(DIRSRC)+$(DIRTMP)/sphinx_tmpdir/manuals+g" \ 145 151 -e "s+\.sh+.sh.rst+g") 146 152 … … 149 155 sed -e "s+$(DIRSRC)+$(DIRWWW)/manuals/man/man1/+g" \ 150 156 -e "s+\.sh+.sh.1+g") 151 152 LIST_SRCSH_HTML = \153 $(shell echo "$(LIST_SRCSH)" | \154 sed -e "s+$(DIRSRC)+$(DIRWWW)/manuals/html/many/+g" \155 -e "s+\.sh+.sh.html+g")156 157 LIST_SRCSH_PDF = \158 $(shell echo "$(LIST_SRCSH)" | \159 sed -e "s+$(DIRSRC)+$(DIRWWW)/manuals/pdf/many/+g" \160 -e "s+\.sh+.sh.pdf+g")161 157 162 158 LIST_SRCMATLAB = \ … … 188 184 LIST_SRCMATLAB_RST = \ 189 185 $(shell echo "$(LIST_SRCMATLAB)" | \ 190 sed -e "s+$(DIRSRC)/mode_sahelien+$(DIRTMP) +g" \191 -e "s+$(DIRSRC)/SIMULS_IRCAAM+$(DIRTMP) +g" \192 -e "s+$(DIRSRC)+$(DIRTMP) +g" \186 sed -e "s+$(DIRSRC)/mode_sahelien+$(DIRTMP)/sphinx_tmpdir/manuals+g" \ 187 -e "s+$(DIRSRC)/SIMULS_IRCAAM+$(DIRTMP)/sphinx_tmpdir/manuals+g" \ 188 -e "s+$(DIRSRC)+$(DIRTMP)/sphinx_tmpdir/manuals+g" \ 193 189 -e "s+\.m+.m.rst+g") 194 195 LIST_SRCMATLAB_HTML = \196 $(shell echo "$(LIST_SRCMATLAB)" | \197 sed -e "s+$(DIRSRC)/mode_sahelien/+$(DIRWWW)/manuals/html/many/+g" \198 -e "s+$(DIRSRC)/SIMULS_IRCAAM/+$(DIRWWW)/manuals/html/many/+g" \199 -e "s+$(DIRSRC)+$(DIRWWW)/manuals/html/many/+g" \200 -e "s+\.m+.m.html+g")201 202 LIST_SRCMATLAB_PDF = \203 $(shell echo "$(LIST_SRCMATLAB)" | \204 sed -e "s+$(DIRSRC)/mode_sahelien/+$(DIRWWW)/manuals/pdf/many/+g" \205 -e "s+$(DIRSRC)/SIMULS_IRCAAM/+$(DIRWWW)/manuals/pdf/many/+g" \206 -e "s+$(DIRSRC)+$(DIRWWW)/manuals/pdf/many/+g" \207 -e "s+\.m+.m.pdf+g")208 190 209 191 LIST_SRCFORTRAN = \ … … 213 195 LIST_SRCFORTRAN_RST = \ 214 196 $(shell echo "$(LIST_SRCFORTRAN)" | \ 215 sed -e "s+$(DIRSRC)/SIMULS_IRCAAM /+$(DIRTMP)+g" \216 -e "s+$(DIRSRC)+$(DIRTMP) +g" \197 sed -e "s+$(DIRSRC)/SIMULS_IRCAAM+$(DIRTMP)/sphinx_tmpdir/manuals+g" \ 198 -e "s+$(DIRSRC)+$(DIRTMP)/sphinx_tmpdir/manuals+g" \ 217 199 -e "s+\.F90+.F90.rst+g" \ 218 200 -e "s+\.f+.f.rst+g") 219 220 LIST_SRCFORTRAN_HTML = \221 $(shell echo "$(LIST_SRCFORTRAN)" | \222 sed -e "s+$(DIRSRC)/SIMULS_IRCAAM/+$(DIRWWW)/manuals/html/many/+g" \223 -e "s+$(DIRSRC)+$(DIRWWW)/manuals/html/many/+g" \224 -e "s+\.F90+.F90.html+g" \225 -e "s+\.f+.f.html+g")226 227 LIST_SRCFORTRAN_PDF = \228 $(shell echo "$(LIST_SRCFORTRAN)" | \229 sed -e "s+$(DIRSRC)/mode_sahelien/+$(DIRWWW)/manuals/pdf/many/+g" \230 -e "s+$(DIRSRC)/SIMULS_IRCAAM/+$(DIRWWW)/manuals/pdf/many/+g" \231 -e "s+$(DIRSRC)+$(DIRWWW)/manuals/pdf/many/+g" \232 -e "s+\.F90+.F90.pdf+g" \233 -e "s+\.f+.f.pdf+g")234 201 235 202 .PHONY : \ … … 246 213 man_troff \ 247 214 man_troff_sphinx \ 248 man_html \249 man_html_sphinx \250 man_html_sphinx_one \251 man_pdf \252 man_pdf_sphinx \215 html \ 216 html_sphinx \ 217 html_sphinx_one \ 218 pdf \ 219 pdf_sphinx \ 253 220 html_src_browser \ 254 221 html_src_browser_doxygen … … 273 240 before : 274 241 @mkdir -p $(DIRWWW)/manuals/man/man1/ 275 @mkdir -p $(DIRWWW)/manuals/html/many/276 242 @mkdir -p $(DIRWWW)/manuals/html/sphinx/ 277 @mkdir -p $(DIRWWW)/manuals/pdf/many/278 243 @mkdir -p $(DIRWWW)/manuals/pdf/sphinx/ 279 244 @mkdir -p $(DIRTMP)/sphinx_tmpdir/doctrees/ 245 @mkdir -p $(DIRTMP)/sphinx_tmpdir/manuals/ 280 246 @mkdir -p $(DIRWWW)/src_browser/ 281 247 … … 303 269 cleantmp : 304 270 -@rm -f $(DIRTMP)/all.xml 305 -@rm -f $(DIRTMP)/*.rst306 271 -@rm -f $(DIRTMP)/*.tex 307 -@rm -f $(DIRWWW)/manuals/pdf/many/*.aux308 -@rm -f $(DIRWWW)/manuals/pdf/many/*.log309 -@rm -f $(DIRWWW)/manuals/pdf/many/*.out310 272 -@rm -fr $(DIRTMP)/sphinx_tmpdir/ 311 273 -@rm -f $(DIRTMP)/sphinx_*.log … … 331 293 man : \ 332 294 man_troff \ 333 man_html \334 man_pdf \295 html \ 296 pdf \ 335 297 336 298 html_src_browser : \ … … 346 308 $(LIST_SRCMATLAB_RST) \ 347 309 $(LIST_SRCFORTRAN_RST) 348 @cp $(LIST_SRCSH_RST) $(DIRTMP)/sphinx_tmpdir/349 @cp $(LIST_SRCMATLAB_RST) $(DIRTMP)/sphinx_tmpdir/350 @cp $(LIST_SRCFORTRAN_RST) $(DIRTMP)/sphinx_tmpdir/351 310 @sphinx-build -b man -c $(DIRADM)/sphinx \ 352 311 -d $(DIRTMP)/sphinx_tmpdir/doctrees \ … … 355 314 $(DIRWWW)/manuals/man/man1/ 356 315 357 man_html : \358 man_html_sphinx \359 man_html_sphinx_one360 361 man_html_sphinx : \316 html : \ 317 html_sphinx \ 318 html_sphinx_one 319 320 html_sphinx : \ 362 321 $(DIRADM)/sphinx/conf.py \ 363 322 $(DIRTMP)/sphinx_tmpdir/index.rst \ … … 365 324 $(LIST_SRCMATLAB_RST) \ 366 325 $(LIST_SRCFORTRAN_RST) 367 @cp $(LIST_SRCSH_RST) $(DIRTMP)/sphinx_tmpdir/368 @cp $(LIST_SRCMATLAB_RST) $(DIRTMP)/sphinx_tmpdir/369 @cp $(LIST_SRCFORTRAN_RST) $(DIRTMP)/sphinx_tmpdir/370 326 @sphinx-build -b html -c $(DIRADM)/sphinx \ 371 327 -d $(DIRTMP)/sphinx_tmpdir/doctrees \ … … 374 330 $(DIRWWW)/manuals/html/sphinx/ 375 331 376 man_html_sphinx_one : \332 html_sphinx_one : \ 377 333 $(DIRADM)/sphinx/conf.py \ 378 334 $(DIRTMP)/sphinx_tmpdir/index.rst \ … … 380 336 $(LIST_SRCMATLAB_RST) \ 381 337 $(LIST_SRCFORTRAN_RST) 382 @cp $(LIST_SRCSH_RST) $(DIRTMP)/sphinx_tmpdir/383 @cp $(LIST_SRCMATLAB_RST) $(DIRTMP)/sphinx_tmpdir/384 @cp $(LIST_SRCFORTRAN_RST) $(DIRTMP)/sphinx_tmpdir/385 338 @sphinx-build -b singlehtml -c $(DIRADM)/sphinx \ 386 339 -d $(DIRTMP)/sphinx_tmpdir/doctrees \ … … 389 342 $(DIRWWW)/manuals/html/sphinx_one/ 390 343 391 man_pdf : \392 man_pdf_sphinx393 394 man_pdf_sphinx : \344 pdf : \ 345 pdf_sphinx 346 347 pdf_sphinx : \ 395 348 $(DIRADM)/sphinx/conf.py \ 396 349 $(DIRTMP)/sphinx_tmpdir/index.rst \ … … 398 351 $(LIST_SRCMATLAB_RST) \ 399 352 $(LIST_SRCFORTRAN_RST) 400 @cp $(LIST_SRCSH_RST) $(DIRTMP)/sphinx_tmpdir/401 @cp $(LIST_SRCMATLAB_RST) $(DIRTMP)/sphinx_tmpdir/402 @cp $(LIST_SRCFORTRAN_RST) $(DIRTMP)/sphinx_tmpdir/403 353 @sphinx-build -b latex -c $(DIRADM)/sphinx \ 404 354 -d $(DIRTMP)/sphinx_tmpdir/doctrees \ … … 425 375 @for file in $(LIST_SRCSH); \ 426 376 do \ 427 echo " $$(basename $${file})"; \377 echo " manuals/$$(basename $${file})"; \ 428 378 done >> $@ 429 379 @echo " " >> $@ … … 436 386 @for file in $(LIST_SRCMATLAB); \ 437 387 do \ 438 echo " $$(basename $${file})"; \388 echo " manuals/$$(basename $${file})"; \ 439 389 done >> $@ 440 390 @echo " " >> $@ … … 447 397 @for file in $(LIST_SRCFORTRAN); \ 448 398 do \ 449 echo " $$(basename $${file})"; \399 echo " manuals/$$(basename $${file})"; \ 450 400 done >> $@ 451 401 @echo " " >> $@ … … 465 415 @touch $@ 466 416 467 $(DIRTMP)/ %.sh.rst : $(DIRSRC)/%.sh417 $(DIRTMP)/sphinx_tmpdir/manuals/%.sh.rst : $(DIRSRC)/%.sh $(DIRADM)/extract_rst.sh 468 418 @$(DIRADM)/extract_rst.sh -i $< -l sh -o $@ 469 419 470 $(DIRTMP)/ %.m.rst : $(DIRSRC)/%.m420 $(DIRTMP)/sphinx_tmpdir/manuals/%.m.rst : $(DIRSRC)/%.m $(DIRADM)/extract_rst.sh 471 421 @$(DIRADM)/extract_rst.sh -i $< -l matlab -o $@ 472 422 473 $(DIRTMP)/ %.m.rst : $(DIRSRC)/mode_sahelien/%.m423 $(DIRTMP)/sphinx_tmpdir/manuals/%.m.rst : $(DIRSRC)/mode_sahelien/%.m $(DIRADM)/extract_rst.sh 474 424 @$(DIRADM)/extract_rst.sh -i $< -l matlab -o $@ 475 425 476 $(DIRTMP)/ %.m.rst : $(DIRSRC)/SIMULS_IRCAAM/%.m426 $(DIRTMP)/sphinx_tmpdir/manuals/%.m.rst : $(DIRSRC)/SIMULS_IRCAAM/%.m $(DIRADM)/extract_rst.sh 477 427 @$(DIRADM)/extract_rst.sh -i $< -l matlab -o $@ 478 428 479 $(DIRTMP)/ %.F90.rst : $(DIRSRC)/SIMULS_IRCAAM/%.F90429 $(DIRTMP)/sphinx_tmpdir/manuals/%.F90.rst : $(DIRSRC)/SIMULS_IRCAAM/%.F90 $(DIRADM)/extract_rst.sh 480 430 @$(DIRADM)/extract_rst.sh -i $< -l fortran -o $@ 481 431 482 $(DIRTMP)/ %.f.rst : $(DIRSRC)/%.f432 $(DIRTMP)/sphinx_tmpdir/manuals/%.f.rst : $(DIRSRC)/%.f $(DIRADM)/extract_rst.sh 483 433 @$(DIRADM)/extract_rst.sh -i $< -l fortran -o $@ 484 434
Note: See TracChangeset
for help on using the changeset viewer.