Makefile 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. # Makefile - for the org-mode distribution
  2. #
  3. # Maintainer: Carsten Dominik <dominik@science.uva.nl>
  4. # Version: VERSIONTAG
  5. #
  6. # To install org-mode, edit the Makefile, type `make', then `make install'.
  7. # To create the PDF and HTML documentation files, type `make doc'.
  8. ##----------------------------------------------------------------------
  9. ## YOU MUST EDIT THE FOLLOWING LINES
  10. ##----------------------------------------------------------------------
  11. # Name of your emacs binary
  12. EMACS=emacs
  13. # Where local software is found
  14. prefix=/usr/local
  15. # Where local lisp files go.
  16. lispdir = $(prefix)/share/emacs/site-lisp
  17. # Where info files go.
  18. infodir = $(prefix)/info
  19. ##----------------------------------------------------------------------
  20. ## YOU MAY NEED TO EDIT THESE
  21. ##----------------------------------------------------------------------
  22. # Using emacs in batch mode.
  23. BATCH=$(EMACS) -batch -q
  24. # Specify the byte-compiler for compiling org-mode files
  25. ELC= $(BATCH) -f batch-byte-compile
  26. # How to make a pdf file from a texinfo file
  27. TEXI2PDF = texi2pdf
  28. # How to create directories
  29. MKDIR = mkdir -p
  30. # How to create the info files from the texinfo file
  31. MAKEINFO = makeinfo
  32. # How to create the HTML file
  33. TEXI2HTML = makeinfo --html --number-sections --no-split
  34. # How to move the byte compiled files to their destination.
  35. MV = mv
  36. # How to copy the lisp files to their distination.
  37. CP = cp -p
  38. ##----------------------------------------------------------------------
  39. ## BELOW THIS LINE ON YOUR OWN RISK!
  40. ##----------------------------------------------------------------------
  41. # The following variables need to be defined by the maintainer
  42. LISPFILES = org.el org-publish.el org-mouse.el org-install.el
  43. ELCFILES = $(LISPFILES:.el=.elc)
  44. DOCFILES = org.texi org.pdf org orgcard.tex orgcard.pdf
  45. TEXIFILES = org.texi
  46. INFOFILES = org
  47. HTMLDIR = /home/dominik/public_html/Tools/org
  48. .SUFFIXES: .el .elc .texi
  49. SHELL = /bin/sh
  50. DISTFILES= README ${LISPFILES} ${DOCFILES} Makefile
  51. DISTFILES_xemacs= xemacs/noutline.el xemacs/ps-print-invisible.el xemacs/README
  52. all: $(ELCFILES)
  53. install: install-lisp
  54. doc: org.html org.pdf orgcard.pdf
  55. install-lisp: $(LISPFILES) $(ELCFILES)
  56. if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
  57. $(CP) $(LISPFILES) $(lispdir)
  58. $(CP) $(ELCFILES) $(lispdir)
  59. install-info: $(INFOFILES)
  60. if [ ! -d $(infodir) ]; then $(MKDIR) $(infodir); else true; fi ;
  61. $(CP) $(INFOFILES) $(infodir)
  62. install-noutline: xemacs/noutline.elc
  63. if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
  64. $(CP) xemacs/noutline.el xemacs/noutline.elc $(lispdir)
  65. org.elc: org.el
  66. org-publish.elc: org-publish.el
  67. org-install.elc: org-install.el
  68. xemacs/noutline.elc: xemacs/noutline.el
  69. org: org.texi
  70. $(MAKEINFO) --no-split org.texi -o org
  71. org.pdf: org.texi
  72. $(TEXI2PDF) org.texi
  73. org.html: org.texi
  74. $(TEXI2HTML) -o org.html org.texi
  75. orgcard.dvi: orgcard.tex
  76. tex orgcard.tex
  77. orgcard.pdf: orgcard.dvi
  78. dvips -q -f -t landscape orgcard.dvi | gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=orgcard.pdf -c .setpdfwrite -
  79. orgcard.ps: orgcard.dvi
  80. dvips -t landscape -o orgcard.ps orgcard.dvi
  81. # Below here are special targets for maintenance only
  82. info:
  83. $(MAKEINFO) --no-split org.texi -o org
  84. pdf: org.pdf
  85. card: orgcard.pdf orgcard.ps
  86. xcompile:
  87. xemacs -batch -q -f batch-byte-compile $(LISPFILES)
  88. ecompile:
  89. emacs -batch -q -f batch-byte-compile $(LISPFILES)
  90. distfile:
  91. @if [ "X$(TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi
  92. touch org.texi orgcard.tex
  93. make info
  94. make doc
  95. rm -rf org-$(TAG) org-$(TAG).zip
  96. $(MKDIR) org-$(TAG)
  97. $(MKDIR) org-$(TAG)/xemacs
  98. cp $(DISTFILES) org-$(TAG)/
  99. cp $(DISTFILES_xemacs) org-$(TAG)/xemacs/
  100. zip -r org-$(TAG).zip org-$(TAG)
  101. gtar zcvf org-$(TAG).tar.gz org-$(TAG)
  102. dist:
  103. make distfile TAG=$(TAG)
  104. cp org-$(TAG).zip org-$(TAG).tar.gz $(HTMLDIR)
  105. rm -f $(HTMLDIR)/org.zip $(HTMLDIR)/org.tar.gz
  106. (cd $(HTMLDIR); ln -s org-$(TAG).zip org.zip)
  107. (cd $(HTMLDIR); ln -s org-$(TAG).tar.gz org.tar.gz)
  108. make doc
  109. cp org.pdf orgcard.pdf org.texi org.html $(HTMLDIR)
  110. minidist:
  111. rm -f org-$(TAG).zip
  112. zip org-$(TAG).zip org.el
  113. scp org-$(TAG).zip remote.science.uva.nl:public_html/Tools/org/
  114. clean:
  115. rm -f $(ELCFILES) org.pdf org org.html orgcard.pdf orgcard.ps
  116. rm -f *~
  117. rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.pg *.pgs
  118. rm -f *.toc *.tp *.tps *.vr *.vrs *.log *.html *.ps
  119. .el.elc:
  120. $(ELC) $<