Convert "push" to the lib infrastructure
[stgit] / contrib / Makefile
1 EMACS = emacs
2
3 ELC = stgit.elc
4 INSTALL ?= install
5 INSTALL_ELC = $(INSTALL) -m 644
6 prefix ?= $(HOME)
7 emacsdir = $(prefix)/share/emacs/site-lisp
8 RM ?= rm -f
9
10 all: $(ELC)
11
12 install: all
13 $(INSTALL) -d $(DESTDIR)$(emacsdir)
14 $(INSTALL_ELC) $(ELC:.elc=.el) $(ELC) $(DESTDIR)$(emacsdir)
15
16 %.elc: %.el
17 $(EMACS) -batch -f batch-byte-compile $<
18
19 clean:; $(RM) $(ELC)