aboutsummaryrefslogtreecommitdiff
path: root/.config/emacs/lisp/evil/Makefile
diff options
context:
space:
mode:
authorJack Jamison <jackqjamison@gmail.com>2026-07-05 01:19:30 -0400
committerJack Jamison <jackqjamison@gmail.com>2026-07-05 01:19:30 -0400
commitbdf9a71ab7baa2b1de9abcfd5df1a9107a55d141 (patch)
treec4524e6c41aa5107211103401dabfaefc81aa882 /.config/emacs/lisp/evil/Makefile
parentfe3984f541bd32bdfa418afb305b614176b55ca0 (diff)
add a bunch of emacs packages HELP
Diffstat (limited to '.config/emacs/lisp/evil/Makefile')
-rw-r--r--.config/emacs/lisp/evil/Makefile80
1 files changed, 80 insertions, 0 deletions
diff --git a/.config/emacs/lisp/evil/Makefile b/.config/emacs/lisp/evil/Makefile
new file mode 100644
index 0000000..6dd8f25
--- /dev/null
+++ b/.config/emacs/lisp/evil/Makefile
@@ -0,0 +1,80 @@
+EMACS ?= emacs
+SED ?= sed
+FILES = $(filter-out evil-test-helpers.el evil-tests.el evil-pkg.el,$(wildcard evil*.el))
+VERSION := $(shell $(SED) -n '/^;\+ \+Version: *\(.*\)/{s//\1/p;q}' evil.el)
+PROFILER =
+TAG =
+EASK ?= eask
+
+ELCFILES = $(FILES:.el=.elc)
+
+.PHONY: all compile docstrings doc clean tests test emacs term terminal profiler indent elpa version
+
+# Byte-compile Evil.
+all: compile
+
+compile:
+ $(EASK) compile
+
+# Documentation.
+docstrings:
+ @$(EMACS) --script scripts/evil-extract-docstrings
+
+doc: docstrings
+ @$(MAKE) -C doc texinfo
+
+info: doc
+ @$(MAKE) -C doc info
+
+# Delete byte-compiled files etc.
+clean:
+ $(EASK) clean all
+
+# Run tests.
+# The TAG variable may specify a test tag or a test name:
+# make test TAG=repeat
+# This will only run tests pertaining to the repeat system.
+test:
+ $(EASK) run command test
+
+# Byte-compile Evil and run all tests.
+tests: compile
+ $(EASK) run command test
+ $(EASK) clean elc
+ rm -f .depend
+
+# Load Evil in a fresh instance of Emacs and run all tests.
+emacs:
+ $(EMACS) -Q -L . -l evil-tests.el \
+ --eval "(evil-mode 1)" \
+ --eval "(evil-tests-initialize '(${TAG}) '(${PROFILER}) t)"
+
+# Load Evil in a terminal Emacs and run all tests.
+term terminal:
+ $(EASK) run command terminal
+
+# Run all tests with profiler.
+profiler:
+ $(EASK) run command profiler
+
+# Re-indent all Evil code.
+# Loads Evil into memory in order to indent macros properly.
+# Also removes trailing whitespace, tabs and extraneous blank lines.
+indent: clean
+ $(EASK) run command indent
+
+evil-pkg.el: evil.el
+ $(EMACS) --batch -l package $^ \
+ --eval "(package-generate-description-file (package-buffer-info) \"$@\")"
+
+# Create an ELPA package.
+elpa: evil-pkg.el
+ $(EASK) package
+
+# Change the version using make VERSION=x.y.z
+version:
+ @$(EMACS) --script scripts/evilupdate "${VERSION}"
+
+# Change the version using make VERSION=x.y.z, but do not post to the newsgroup
+nversion:
+ @$(EMACS) --script scripts/evilupdate nonews "${VERSION}"