X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile;h=5904422b81cd19c9c33d341517229d0150d6ae65;hb=1856f4247b23dde4747bc0fd3085aa8c5d422f23;hp=657a0e5fd979d87f16577b69c71f7b9ae647cc72;hpb=5593635b87ce81aa51c7bc3c503b94388a0b84d7;p=exopen-mode.git diff --git a/Makefile b/Makefile index 657a0e5..5904422 100644 --- a/Makefile +++ b/Makefile @@ -1,20 +1,27 @@ -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 %.elc: %.el $(COMPILE.el) $< + +include git.mk