Update t0004-main.sh for updated Python version
[stgit.git] / contrib / Makefile
blobcc3d30bd3d451e1df95c22a2e700f4fb21deab44
1 EMACS = emacs
3 ELC = stgit.elc
4 INSTALL ?= install
5 INSTALL_ELC = $(INSTALL) -m 644
6 prefix ?= $(HOME)/.local
7 emacsdir = $(prefix)/share/emacs/site-lisp
8 RM ?= rm -f
10 all: $(ELC)
12 install: all
13 $(INSTALL) -d $(DESTDIR)$(emacsdir)
14 $(INSTALL_ELC) $(ELC:.elc=.el) $(ELC) $(DESTDIR)$(emacsdir)
16 %.elc: %.el
17 $(EMACS) -batch -f batch-byte-compile $<
19 clean:; $(RM) $(ELC)