X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile;h=5904422b81cd19c9c33d341517229d0150d6ae65;hb=c3a4054b66143a509d70ec85da1745538c059f28;hp=43ddd67fa120bc3c769bd957afc3a630b5b72b10;hpb=6b5f14dd1ae58a03a5d7c7aa22d2a8f779d01da3;p=exopen-mode.git diff --git a/Makefile b/Makefile index 43ddd67..5904422 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,27 @@ -TARGETS := exopen.el -INSTALLDIR := ~/.emacs.d/dev +prefix ?= /usr/local +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 -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 %.elc: %.el $(COMPILE.el) $< + +include git.mk