X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile;h=36b408e0b369744ddf64b5041249b27beede9048;hb=744523c647beb7d7cfba3ef59d15170bfc8283f7;hp=0e99818ae54a293ba3e9fd6cd3857adff00347fa;hpb=71194a27c42229172b2eec381c9d41f164a01d14;p=exopen-mode.git diff --git a/Makefile b/Makefile index 0e99818..36b408e 100644 --- a/Makefile +++ b/Makefile @@ -1,22 +1,26 @@ -TARGETS := exopen-mode.el -INSTALLDIR := ~/.emacs.d/dev +prefix ?= /usr/local +elispdir ?= $(prefix)/share/emacs/site-lisp +installdir ?= $(elispdir)/exopen + +.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 $(installdir) + $(INSTALL) $^ $(installdir)/ + +uninstall: + $(RM) $(prefix $(installdir)/,$(TARGETS)) $(suffix c,$(prefix $(installdir)/,$(TARGETS))) clean: $(RM) *.elc %.elc: %.el $(COMPILE.el) $< - -include git.mk