summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorninrod <filipe.silva@gmail.com>2019-04-02 23:23:32 -0300
committerninrod <filipe.silva@gmail.com>2019-04-02 23:23:32 -0300
commit83c2e0f3690cae07a2134cd53d4fd159ff5695a0 (patch)
treeae1754ec35093769980d33486b6c71c3b36d48f6 /Makefile
parent9e445b7ab1b2381a1882804553af2789c2282987 (diff)
add a "make emacs" makefile option to fire up a clean emacs...
- ...environment with just evil and evil-surround - additionally, alter readme to include a first CONTRIBUTING section draft.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a9a8e86..1926247 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,16 @@
emacs ?= emacs
bemacs = $(emacs) -batch -l test/elpa.el
+LIBS = -L evil -L evil/lib -l evil.el -l goto-chg.el -l undo-tree.el -L . -l evil-surround.el -L test -l evil-surround-test.el
update:
- $(emacs) -batch -l test/make-update.el
+ $(emacs) -batch -l test/make-update.el && \
+ [ ! -d evil ] && \
+ git clone --depth 1 https://github.com/emacs-evil/evil.git
+
+emacs:
+ $(emacs) -Q $(LIBS) \
+ --eval "(evil-mode 1)" \
+ --eval "(global-evil-surround-mode 1)"
compile: clean
$(bemacs) -l test/make-compile.el
@@ -10,7 +18,10 @@ compile: clean
test:
$(bemacs) -l test/make-test.el
+
clean:
rm -f *.elc
+
+
.PHONY: update compile test clean