projects
/
exopen-mode.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
マージ
[exopen-mode.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
43ddd67
..
5904422
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,17
+1,27
@@
-
TARGETS := exopen.e
l
-INSTALLDIR := ~/.emacs.d/dev
+
prefix ?= /usr/loca
l
+elispdir ?= $(prefix)/share/emacs/site-lisp/exopen-mode
-.PHONY: install
+.PHONY: install clean
+
+TARGETS := exopen-mode.el
EMACS := emacs
COMPILE.el := $(EMACS) -batch -f batch-byte-compile
INSTALL := install
EMACS := emacs
COMPILE.el := $(EMACS) -batch -f batch-byte-compile
INSTALL := install
-INSTALLFLAG :=
$(addsuffix c,$(TARGETS)):
install: $(TARGETS) $(addsuffix c,$(TARGETS))
$(addsuffix c,$(TARGETS)):
install: $(TARGETS) $(addsuffix c,$(TARGETS))
- $(INSTALL) $^ $(INSTALLDIR)/
+ $(INSTALL) -d $(elispdir)
+ $(INSTALL) $^ $(elispdir)/
+
+uninstall:
+ $(RM) $(prefix $(elispdir)/,$(TARGETS)) $(suffix c,$(prefix $(elispdir)/,$(TARGETS)))
+
+clean:
+ $(RM) *.elc
%.elc: %.el
$(COMPILE.el) $<
%.elc: %.el
$(COMPILE.el) $<
+
+include git.mk