From: j8takagi Date: Wed, 30 Jan 2013 11:57:35 +0000 (+0900) Subject: マージ X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1856f4247b23dde4747bc0fd3085aa8c5d422f23;hp=71194a27c42229172b2eec381c9d41f164a01d14;p=exopen-mode.git マージ --- diff --git a/Makefile b/Makefile index 0e99818..5904422 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,22 @@ -TARGETS := exopen-mode.el -INSTALLDIR := ~/.emacs.d/dev +prefix ?= /usr/local +elispdir ?= $(prefix)/share/emacs/site-lisp/exopen-mode + +.PHONY: install clean -.PHONY: install +TARGETS := exopen-mode.el EMACS := emacs COMPILE.el := $(EMACS) -batch -f batch-byte-compile INSTALL := install -INSTALLFLAG := $(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