Makefile now installs babel and babel-language files in subdirectories

This commit is contained in:
Eric Schulte 2010-06-30 11:56:11 -07:00
parent e0f0e26a43
commit 6ffe2f66d5
1 changed files with 121 additions and 87 deletions

208
Makefile
View File

@ -7,7 +7,7 @@
# To create the PDF and HTML documentation files, type `make doc'. # To create the PDF and HTML documentation files, type `make doc'.
##---------------------------------------------------------------------- ##----------------------------------------------------------------------
## YOU MUST EDIT THE FOLLOWING LINES ## YOU MUST EDIT THE FOLLOWING LINES
##---------------------------------------------------------------------- ##----------------------------------------------------------------------
# Name of your emacs binary # Name of your emacs binary
@ -17,7 +17,9 @@ EMACS=emacs
prefix=/usr/local prefix=/usr/local
# Where local lisp files go. # Where local lisp files go.
lispdir = $(prefix)/share/emacs/site-lisp lispdir = $(prefix)/share/emacs/site-lisp
lispbdir = $(lispdir)/babel
lispbldir = $(lispbdir)/langs
# Where info files go. # Where info files go.
infodir = $(prefix)/share/info infodir = $(prefix)/share/info
@ -62,83 +64,109 @@ INSTALL_INFO=install-info
##---------------------------------------------------------------------- ##----------------------------------------------------------------------
# The following variables need to be defined by the maintainer # The following variables need to be defined by the maintainer
LISPF = org.el \ LISPF = org.el \
org-agenda.el \ org-agenda.el \
org-ascii.el \ org-ascii.el \
org-attach.el \ org-attach.el \
org-archive.el \ org-archive.el \
org-bbdb.el \ org-bbdb.el \
org-beamer.el \ org-beamer.el \
org-bibtex.el \ org-bibtex.el \
org-capture.el \ org-capture.el \
org-clock.el \ org-clock.el \
org-colview.el \ org-colview.el \
org-colview-xemacs.el \ org-colview-xemacs.el \
org-compat.el \ org-compat.el \
org-crypt.el \ org-crypt.el \
org-ctags.el \ org-ctags.el \
org-datetree.el \ org-datetree.el \
org-docview.el \ org-docview.el \
org-entities.el \ org-entities.el \
org-exp.el \ org-exp.el \
org-exp-blocks.el \ org-exp-blocks.el \
org-docbook.el \ org-docbook.el \
org-faces.el \ org-faces.el \
org-feed.el \ org-feed.el \
org-footnote.el \ org-footnote.el \
org-freemind.el \ org-freemind.el \
org-gnus.el \ org-gnus.el \
org-habit.el \ org-habit.el \
org-html.el \ org-html.el \
org-icalendar.el \ org-icalendar.el \
org-id.el \ org-id.el \
org-indent.el \ org-indent.el \
org-info.el \ org-info.el \
org-inlinetask.el \ org-inlinetask.el \
org-jsinfo.el \ org-jsinfo.el \
org-irc.el \ org-irc.el \
org-latex.el \ org-latex.el \
org-list.el \ org-list.el \
org-mac-message.el \ org-mac-message.el \
org-macs.el \ org-macs.el \
org-mew.el \ org-mew.el \
org-mhe.el \ org-mhe.el \
org-mks.el \ org-mks.el \
org-mobile.el \ org-mobile.el \
org-mouse.el \ org-mouse.el \
org-publish.el \ org-publish.el \
org-plot.el \ org-plot.el \
org-protocol.el \ org-protocol.el \
org-remember.el \ org-remember.el \
org-rmail.el \ org-rmail.el \
org-src.el \ org-src.el \
org-table.el \ org-table.el \
org-taskjuggler.el \ org-taskjuggler.el \
org-timer.el \ org-timer.el \
org-vm.el \ org-vm.el \
org-w3m.el \ org-w3m.el \
org-wl.el \ org-wl.el \
org-xoxo.el \ org-xoxo.el
babel/ob.el \
babel/ob-table.el \
babel/ob-lob.el \
babel/ob-ref.el \
babel/ob-exp.el \
babel/ob-tangle.el \
babel/ob-comint.el \
babel/ob-keys.el \
babel/langs/ob-emacs-lisp.el
LISPFILES0 = $(LISPF:%=lisp/%) LISPBF = ob.el \
LISPFILES = $(LISPFILES0) lisp/org-install.el ob-table.el \
ELCFILES0 = $(LISPFILES0:.el=.elc) ob-lob.el \
ELCFILES = $(LISPFILES:.el=.elc) ob-ref.el \
DOCFILES = doc/org.texi doc/org.pdf doc/org doc/dir \ ob-exp.el \
doc/pdflayout.sty doc/.nosearch \ ob-tangle.el \
doc/orgguide.texi doc/orgguide.pdf ob-comint.el \
CARDFILES = doc/orgcard.tex doc/orgcard.pdf doc/orgcard_letter.pdf ob-keys.el
TEXIFILES = doc/org.texi
INFOFILES = doc/org LISPBLF = ob-C.el \
ob-ditaa.el \
ob-haskell.el \
ob-perl.el \
ob-sh.el \
ob-R.el \
ob-dot.el \
ob-latex.el \
ob-python.el \
ob-sql.el \
ob-asymptote.el \
ob-emacs-lisp.el \
ob-matlab.el \
ob-ruby.el \
ob-sqlite.el \
ob-clojure.el \
ob-ocaml.el \
ob-sass.el \
ob-css.el \
ob-gnuplot.el \
ob-octave.el \
ob-screen.el
LISPFILES0 = $(LISPF:%=lisp/%)
LISPFILES = $(LISPFILES0) lisp/org-install.el
LISPBFILES = $(LISPBF:%=lisp/babel/%)
LISPBLFILES = $(LISPBLF:%=lisp/babel/langs/%)
ELCFILES0 = $(LISPFILES0:.el=.elc)
ELCFILES = $(LISPFILES:.el=.elc)
ELCBFILES = $(LISPBFILES:.el=.elc)
DOCFILES = doc/org.texi doc/org.pdf doc/org doc/dir \
doc/pdflayout.sty doc/.nosearch \
doc/orgguide.texi doc/orgguide.pdf
CARDFILES = doc/orgcard.tex doc/orgcard.pdf doc/orgcard_letter.pdf
TEXIFILES = doc/org.texi
INFOFILES = doc/org
.SUFFIXES: .el .elc .texi .SUFFIXES: .el .elc .texi
@ -148,9 +176,9 @@ SHELL = /bin/sh
DISTFILES_extra= Makefile ChangeLog request-assign-future.txt contrib DISTFILES_extra= Makefile ChangeLog request-assign-future.txt contrib
DISTFILES_xemacs= xemacs/noutline.el xemacs/ps-print-invisible.el xemacs/README DISTFILES_xemacs= xemacs/noutline.el xemacs/ps-print-invisible.el xemacs/README
default: $(ELCFILES) default: $(ELCFILES) $(ELCBFILES)
all: $(ELCFILES) $(INFOFILES) all: $(ELCFILES) $(ELCBFILES) $(INFOFILES)
up2: update up2: update
sudo ${MAKE} install sudo ${MAKE} install
@ -160,7 +188,7 @@ update:
${MAKE} clean ${MAKE} clean
${MAKE} all ${MAKE} all
compile: $(ELCFILES0) compile: $(ELCFILES0) $(ELCBFILES)
install: install-lisp install: install-lisp
@ -172,10 +200,15 @@ p:
g: g:
${MAKE} pdf && open doc/orgguide.pdf ${MAKE} pdf && open doc/orgguide.pdf
install-lisp: $(LISPFILES) $(ELCFILES) install-lisp: $(LISPFILES) $(LISPBFILES) $(ELCFILES)
if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ; if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
$(CP) $(LISPFILES) $(lispdir) if [ ! -d $(lispbdir) ]; then $(MKDIR) $(lispbdir); else true; fi ;
$(CP) $(ELCFILES) $(lispdir) if [ ! -d $(lispbldir) ]; then $(MKDIR) $(lispbldir); else true; fi ;
$(CP) $(LISPFILES) $(lispdir)
$(CP) $(ELCFILES) $(lispdir)
$(CP) $(LISPBFILES) $(lispbdir)
$(CP) $(ELCBFILES) $(lispbdir)
$(CP) $(LISPBLFILES) $(lispbldir)
install-info: $(INFOFILES) install-info: $(INFOFILES)
if [ ! -d $(infodir) ]; then $(MKDIR) $(infodir); else true; fi ; if [ ! -d $(infodir) ]; then $(MKDIR) $(infodir); else true; fi ;
@ -191,7 +224,7 @@ install-noutline: xemacs/noutline.elc
autoloads: lisp/org-install.el autoloads: lisp/org-install.el
lisp/org-install.el: $(LISPFILES0) Makefile lisp/org-install.el: $(LISPFILES0) $(LISPBFILES) Makefile
$(BATCH) --eval "(require 'autoload)" \ $(BATCH) --eval "(require 'autoload)" \
--eval '(find-file "org-install.el")' \ --eval '(find-file "org-install.el")' \
--eval '(erase-buffer)' \ --eval '(erase-buffer)' \
@ -268,6 +301,7 @@ distfile:
$(MKDIR) org-$(TAG)/doc $(MKDIR) org-$(TAG)/doc
$(MKDIR) org-$(TAG)/lisp $(MKDIR) org-$(TAG)/lisp
cp -r $(LISPFILES) org-$(TAG)/lisp cp -r $(LISPFILES) org-$(TAG)/lisp
cp -r $(LISPBFILES) org-$(TAG)/lisp/babel
cp -r $(DOCFILES) $(CARDFILES) org-$(TAG)/doc cp -r $(DOCFILES) $(CARDFILES) org-$(TAG)/doc
cp -r $(DISTFILES_extra) org-$(TAG)/ cp -r $(DISTFILES_extra) org-$(TAG)/
cp -r README_DIST org-$(TAG)/README cp -r README_DIST org-$(TAG)/README
@ -374,7 +408,7 @@ lisp/org-crypt.elc: lisp/org-crypt.el lisp/org.el
lisp/org-ctags.elc: lisp/org.el lisp/org-ctags.elc: lisp/org.el
lisp/org-datetree.elc: lisp/org.el lisp/org-datetree.elc: lisp/org.el
lisp/org-docview.elc: lisp/org.el lisp/org-docview.elc: lisp/org.el
lisp/org-entities.elc: lisp/org-entities.elc:
lisp/org-exp.elc: lisp/org.el lisp/org-agenda.el lisp/org-exp.elc: lisp/org.el lisp/org-agenda.el
lisp/org-exp-blocks.elc: lisp/org.el lisp/org-exp-blocks.elc: lisp/org.el
lisp/org-latex.elc: lisp/org.el lisp/org-exp.el lisp/org-beamer.el lisp/org-latex.elc: lisp/org.el lisp/org-exp.el lisp/org-beamer.el
@ -398,7 +432,7 @@ lisp/org-mac-message.elc: lisp/org.el
lisp/org-macs.elc: lisp/org-macs.elc:
lisp/org-mew.elc: lisp/org.el lisp/org-mew.elc: lisp/org.el
lisp/org-mhe.elc: lisp/org.el lisp/org-mhe.elc: lisp/org.el
lisp/org-mks.elc: lisp/org-mks.elc:
lisp/org-mobile.elc: lisp/org.el lisp/org-mobile.elc: lisp/org.el
lisp/org-mouse.elc: lisp/org.el lisp/org-mouse.elc: lisp/org.el
lisp/org-plot.elc: lisp/org.el lisp/org-exp.el lisp/org-table.el lisp/org-plot.elc: lisp/org.el lisp/org-exp.el lisp/org-table.el