From bffa9a7e46fd21081478fe62882c8b4cddbae82a Mon Sep 17 00:00:00 2001 From: j8takagi Date: Wed, 30 Jan 2013 20:39:44 +0900 Subject: [PATCH] =?utf8?q?make=20install=E3=81=A7=E3=81=AE=E3=82=A4?= =?utf8?q?=E3=83=B3=E3=82=B9=E3=83=88=E3=83=BC=E3=83=AB=E5=85=88=E3=82=92e?= =?utf8?q?lispdir=E3=81=A8=E3=81=97=E3=80=81=E3=83=87=E3=83=95=E3=82=A9?= =?utf8?q?=E3=83=AB=E3=83=88=E5=80=A4=E3=82=92/usr/local/share/emacs/exope?= =?utf8?q?n-mode=E3=81=AB=E8=A8=AD=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Makefile | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 657a0e5..0b52508 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 -- 2.18.0