5904422b81cd19c9c33d341517229d0150d6ae65
[exopen-mode.git] / Makefile
1 prefix ?= /usr/local
2 elispdir ?= $(prefix)/share/emacs/site-lisp/exopen-mode
3
4 .PHONY: install clean
5
6 TARGETS := exopen-mode.el
7
8 EMACS := emacs
9 COMPILE.el := $(EMACS) -batch -f batch-byte-compile
10 INSTALL := install
11
12 $(addsuffix c,$(TARGETS)):
13
14 install: $(TARGETS) $(addsuffix c,$(TARGETS))
15         $(INSTALL) -d $(elispdir)
16         $(INSTALL) $^ $(elispdir)/
17
18 uninstall:
19         $(RM) $(prefix $(elispdir)/,$(TARGETS)) $(suffix c,$(prefix $(elispdir)/,$(TARGETS)))
20
21 clean:
22         $(RM) *.elc
23
24 %.elc: %.el
25         $(COMPILE.el) $<
26
27 include git.mk