forked from mirrors/org-mode
Makefile: Support DESTDIR in Makefile
* Makefile (install-lisp, install-info, install-data): Support DESTDIR. Patch by Ulrich Mueller <ulm@gentoo.org>. See http://lists.gnu.org/archive/html/emacs-orgmode/2012-01/msg00042.html
This commit is contained in:
parent
9ae171a86e
commit
f7ea4bef43
19
Makefile
19
Makefile
|
@ -258,18 +258,21 @@ org-odt-data-dir:
|
||||||
install-lisp: BATCH_EXTRA = -eval "(setq org-odt-data-dir (expand-file-name \"$(datadir)\"))"
|
install-lisp: BATCH_EXTRA = -eval "(setq org-odt-data-dir (expand-file-name \"$(datadir)\"))"
|
||||||
|
|
||||||
install-lisp: $(LISPFILES) $(ELCFILES)
|
install-lisp: $(LISPFILES) $(ELCFILES)
|
||||||
if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
|
if [ ! -d $(DESTDIR)$(lispdir) ]; then \
|
||||||
$(CP) $(LISPFILES) $(lispdir)
|
$(MKDIR) $(DESTDIR)$(lispdir); else true; fi ;
|
||||||
$(CP) $(ELCFILES) $(lispdir)
|
$(CP) $(LISPFILES) $(DESTDIR)$(lispdir)
|
||||||
|
$(CP) $(ELCFILES) $(DESTDIR)$(lispdir)
|
||||||
|
|
||||||
install-info: $(INFOFILES)
|
install-info: $(INFOFILES)
|
||||||
if [ ! -d $(infodir) ]; then $(MKDIR) $(infodir); else true; fi ;
|
if [ ! -d $(DESTDIR)$(infodir) ]; then \
|
||||||
$(CP) $(INFOFILES) $(infodir)
|
$(MKDIR) $(DESTDIR)$(infodir); else true; fi ;
|
||||||
$(INSTALL_INFO) --infodir=$(infodir) $(INFOFILES)
|
$(CP) $(INFOFILES) $(DESTDIR)$(infodir)
|
||||||
|
$(INSTALL_INFO) --infodir=$(DESTDIR)$(infodir) $(INFOFILES)
|
||||||
|
|
||||||
install-data: $(DATAFILES)
|
install-data: $(DATAFILES)
|
||||||
if [ ! -d $(datadir) ]; then $(MKDIR) $(datadir); else true; fi ;
|
if [ ! -d $(DESTDIR)$(datadir) ]; then \
|
||||||
$(CP) $(DATAFILES) $(datadir)
|
$(MKDIR) $(DESTDIR)$(datadir); else true; fi ;
|
||||||
|
$(CP) $(DATAFILES) $(DESTDIR)$(datadir)
|
||||||
|
|
||||||
autoloads: lisp/org-install.el
|
autoloads: lisp/org-install.el
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue