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