prefix ?= /usr/local
-elispdir ?= $(prefix)/share/emacs/site-lisp/exopen-mode
+elispdir ?= $(prefix)/share/emacs/site-lisp
+installdir ?= $(elispdir)/exopen-mode
.PHONY: install clean
$(addsuffix c,$(TARGETS)):
install: $(TARGETS) $(addsuffix c,$(TARGETS))
- $(INSTALL) -d $(elispdir)
- $(INSTALL) $^ $(elispdir)/
+ $(INSTALL) -d $(installdir)
+ $(INSTALL) $^ $(installdir)/
uninstall:
- $(RM) $(prefix $(elispdir)/,$(TARGETS)) $(suffix c,$(prefix $(elispdir)/,$(TARGETS)))
+ $(RM) $(prefix $(installdir)/,$(TARGETS)) $(suffix c,$(prefix $(installdir)/,$(TARGETS)))
clean:
$(RM) *.elc
%.elc: %.el
$(COMPILE.el) $<
-
-include git.mk
+++ /dev/null
-GIT := git
-
-REPO := www.j8takagi.net:/home/git
-
-.PHONY: gitorigin gitpush gitorigin-clean
-
-gitpush:
- $(GIT) push --set-upstream origin master
-
-gitorigin:
- $(GIT) remote add origin $(REPO)/$(notdir $(CURDIR)).git
-
-gitorigin-clean:
- $(GIT) remote remove origin