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

View File

@ -18,6 +18,8 @@ prefix=/usr/local
# Where local lisp files go.
lispdir = $(prefix)/share/emacs/site-lisp
lispbdir = $(lispdir)/babel
lispbldir = $(lispbdir)/langs
# Where info files go.
infodir = $(prefix)/share/info
@ -118,21 +120,47 @@ LISPF = org.el \
org-vm.el \
org-w3m.el \
org-wl.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
org-xoxo.el
LISPBF = ob.el \
ob-table.el \
ob-lob.el \
ob-ref.el \
ob-exp.el \
ob-tangle.el \
ob-comint.el \
ob-keys.el
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
@ -148,9 +176,9 @@ SHELL = /bin/sh
DISTFILES_extra= Makefile ChangeLog request-assign-future.txt contrib
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
sudo ${MAKE} install
@ -160,7 +188,7 @@ update:
${MAKE} clean
${MAKE} all
compile: $(ELCFILES0)
compile: $(ELCFILES0) $(ELCBFILES)
install: install-lisp
@ -172,10 +200,15 @@ p:
g:
${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 $(lispbdir) ]; then $(MKDIR) $(lispbdir); else true; fi ;
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)
if [ ! -d $(infodir) ]; then $(MKDIR) $(infodir); else true; fi ;
@ -191,7 +224,7 @@ install-noutline: xemacs/noutline.elc
autoloads: lisp/org-install.el
lisp/org-install.el: $(LISPFILES0) Makefile
lisp/org-install.el: $(LISPFILES0) $(LISPBFILES) Makefile
$(BATCH) --eval "(require 'autoload)" \
--eval '(find-file "org-install.el")' \
--eval '(erase-buffer)' \
@ -268,6 +301,7 @@ distfile:
$(MKDIR) org-$(TAG)/doc
$(MKDIR) 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 $(DISTFILES_extra) org-$(TAG)/
cp -r README_DIST org-$(TAG)/README