Makefile
上传用户:rrhhcc
上传日期:2015-12-11
资源大小:54129k
文件大小:2k
源码类别:

通讯编程

开发平台:

Visual C++

  1. #
  2. # $Id: Makefile,v 1.37 2008/01/07 07:47:19 tom_henderson Exp $
  3. #
  4. # by default, just assume latex2html is in the user's path
  5. LATEX2HTML= latex2html
  6. L2H_WORKING_DIR = ./l2h
  7. WEB_TARGET_DIR = /nfs/web/isi.edu/htdocs/division7/nsnam/ns/doc
  8. LATEX=          latex
  9. BIBTEX=         bibtex
  10. DVIPS=          dvips
  11. CP= /bin/cp
  12. RM= /bin/rm
  13. FILES= 
  14. asim.tex 
  15. agents.tex 
  16. applications.tex 
  17. worm-model.tex 
  18. basic.tex 
  19. delays.tex 
  20. dynamics.tex 
  21. emulation.tex 
  22. error_model.tex 
  23. everything.tex 
  24. lan.tex 
  25. links.tex 
  26. math.tex 
  27. multicast.tex 
  28. nodes.tex 
  29. otcl.tex 
  30. packet_format.tex 
  31. queue_mgmt.tex 
  32. session.tex 
  33. sim.tex 
  34. srm.tex 
  35. tcp.tex 
  36. timers.tex 
  37. trace.tex 
  38. udp.tex 
  39. undocumented.tex 
  40. unicast.tex 
  41. webcache.tex 
  42. address.tex 
  43. hier-rtg.tex 
  44. mobility.tex 
  45. newnode.tex 
  46. debug.tex 
  47. namtrace.tex 
  48. energymodel.tex 
  49. plm.tex 
  50. propagation.tex 
  51. testsuite.tex 
  52. diffserv.tex 
  53. educational.tex 
  54. codestyle.tex 
  55. diffusion.tex 
  56. sctp.tex 
  57. xcp.tex
  58. all: everything.dvi everything.ps.gz everything.html everything.pdf
  59. html-pre-process:
  60. $(RM) -rf $(L2H_WORKING_DIR)
  61. mkdir $(L2H_WORKING_DIR)
  62. $(CP) -r *.sty *.tex *.aux *.bib *.bbl *.log figures/*.eps $(L2H_WORKING_DIR)
  63. cd $(L2H_WORKING_DIR);  ../pre-process.pl .
  64. html-process:
  65. cd $(L2H_WORKING_DIR); $(LATEX2HTML) -toc_depth 6 -show_section_numbers everything.tex
  66. html-post-process:
  67. cd $(L2H_WORKING_DIR)/everything; ../../post-process.pl .
  68. everything.html: html-pre-process html-process html-post-process
  69. @echo html results are in  $(L2H_WORKING_DIR)/everything
  70. everything.ps: $(FILES) everything.dvi
  71. dvips -f everything >everything.ps
  72. everything.ps.gz: $(FILES) everything.dvi everything.ps
  73. gzip < everything.ps >everything.ps.gz
  74. everything.pdf: $(FILES) everything.ps
  75. ps2pdf everything.ps
  76. everything.dvi: $(FILES)
  77. $(LATEX) everything
  78. @if egrep 'Rerun to get' everything.log; then echo 'Relatexing for cross-references.'; $(LATEX) everything; fi
  79. gv: everything.ps $(FILES)
  80. gv everything.ps
  81. # xxx: doesn't redo bibliography
  82. clean:
  83. rm -f *.aux *.log *.toc everything.dvi everything.ps everything.pdf
  84. ns-doc-auto:
  85. $(MAKE) everything.ps.gz
  86. $(MAKE) everything.pdf
  87. $(MAKE) everything.html
  88. cp everything.ps.gz  $(WEB_TARGET_DIR)/ns_doc.ps.gz
  89. cp everything.pdf $(WEB_TARGET_DIR)/ns_doc.pdf
  90. cp $(L2H_WORKING_DIR)/everything/*.{html,css} $(WEB_TARGET_DIR)
  91. cp $(L2H_WORKING_DIR)/everything/*.png $(WEB_TARGET_DIR)