Makefile 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. #Makefile for MTT documentation
  2. ###############################################################
  3. ## Version control history
  4. ###############################################################
  5. ## $Id$
  6. ## $Log$
  7. ## Revision 1.2 2002/04/26 17:17:20 geraint
  8. ## Allow variables to be set outside Makefile.
  9. ##
  10. ## Revision 1.1 2001/06/04 08:18:52 gawthrop
  11. ## Putting documentation under CVS
  12. ##
  13. ## Revision 1.2 1998/07/02 18:40:07 peterg
  14. ## More on install option
  15. ##
  16. ## Revision 1.1 1998/05/14 09:19:52 peterg
  17. ## Initial revision
  18. ##
  19. ###############################################################
  20. #MTTPATH = /home/peterg/mtt_new/mtt
  21. #DOCPATH = /home/peterg/web-docs/software/MTT/doc
  22. #INFOPATH = /usr/info
  23. MTTPATH ?= /home/peterg/mtt_new/mtt
  24. MTT_COMPONENTS ?= /home/eng4/peterg/mtt_new/mtt/lib/comp
  25. MTT_EXAMPLES ?= /home/eng4/peterg/mtt_new/mtt/lib/examples
  26. DOCPATH ?= /home/peterg/web-docs/software/MTT/doc
  27. #INFOPATH = $(DOCPATH)
  28. INFOPATH ?= /usr/info
  29. all: mtt.info mtt.html mtt.pdf mtt.ps.gz
  30. mtt.info: mtt.texi
  31. echo "Making info manual. Please wait ..."; makeinfo mtt.texi
  32. mtt.dvi: mtt.texi
  33. echo "Making dvi manual. Please wait ..."; tex mtt.texi; tex mtt.texi
  34. mtt.html: mtt.texi
  35. echo "Making html manual. Please wait ..."; texi2html -glossary mtt.texi
  36. mtt.ps.gz: mtt.dvi
  37. echo "Making ps manual. Please wait ..."; dvips -o mtt.ps mtt; gzip -f mtt.ps
  38. mtt.pdf: mtt.texi
  39. echo "Making pdf manual. Please wait ..."; texi2pdf mtt.texi
  40. Compound-Components_rep.ps:
  41. (cd $(MTT_COMPONENTS); mtt Compound-Components rep ps)
  42. mv $(MTT_COMPONENTS)/Compound-Components_rep.ps .
  43. Compound-Components_rep:
  44. (cd $(MTT_COMPONENTS); mtt Compound-Components rep html)
  45. mv $(MTT_COMPONENTS)/Compound-Components_rep .
  46. Examples_rep.ps:
  47. (cd $(MTT_EXAMPLES); mtt Examples rep ps)
  48. mv $(MTT_EXAMPLES)/Examples_rep.ps .
  49. Examples_rep:
  50. (cd $(MTT_EXAMPLES); mtt Examples rep html)
  51. mv $(MTT_EXAMPLES)/Examples_rep .
  52. clean:
  53. rm -f mtt.aux mtt.fns mtt.pg mtt.tp
  54. rm -f mtt.cp mtt.pgs mtt.vr mtt.ps
  55. rm -f mtt.cps mtt.vrs mtt.dvi mtt.ps.gz
  56. rm -f mtt.ky mtt.fn mtt.log mtt.toc
  57. rm -f mtt.ps mtt.info-* mtt.pdf
  58. rm -f mtt.html mtt_toc.html mtt.info
  59. rm -f mtt.log mtt.ky mtt.toc
  60. tidy:
  61. rm -f mtt.aux mtt.fns mtt.pg mtt.tp
  62. rm -f mtt.cp mtt.pgs mtt.vr
  63. rm -f mtt.cps mtt.vrs mtt.dvi
  64. rm -f mtt.log mtt.ky mtt.toc
  65. install-doc: mtt.html mtt.ps.gz mtt.info
  66. cp mtt.info* $(INFOPATH)
  67. cp mtt*.html mtt.ps.gz $(DOCPATH)
  68. chmod -R a+r $(DOCPATH)
  69. chmod a+x $(DOCPATH)
  70. install-components: Compound-Components_rep.ps Compound-Components_rep
  71. mv Compound-Components_rep.ps $(DOCPATH)/../components
  72. mv Compound-Components_rep $(DOCPATH)/../components
  73. chmod -R a+r $(DOCPATH)/../components
  74. chmod -R a+x $(DOCPATH)/../components/Compound-Components_re