DESTDIR support for git/contrib/emacs

make install DESTDIR=... support for git/contrib/emacs

Signed-off-by: Ville Skyttä <scop@xemacs.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
maint
Ville Skyttä 2007-04-05 21:09:31 +03:00 committed by Junio C Hamano
parent 957d6ea78f
commit 1e31fbe24f
1 changed files with 2 additions and 2 deletions

View File

@ -11,8 +11,8 @@ emacsdir = $(prefix)/share/emacs/site-lisp
all: $(ELC)

install: all
$(INSTALL) -d $(emacsdir)
$(INSTALL_ELC) $(ELC) $(emacsdir)
$(INSTALL) -d $(DESTDIR)$(emacsdir)
$(INSTALL_ELC) $(ELC) $(DESTDIR)$(emacsdir)

%.elc: %.el
$(EMACS) -batch -f batch-byte-compile $<