From bdf9a71ab7baa2b1de9abcfd5df1a9107a55d141 Mon Sep 17 00:00:00 2001 From: Jack Jamison Date: Sun, 5 Jul 2026 01:19:30 -0400 Subject: add a bunch of emacs packages HELP --- .config/emacs/lisp/evil/Makefile | 80 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 .config/emacs/lisp/evil/Makefile (limited to '.config/emacs/lisp/evil/Makefile') 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}" -- cgit v1.2.3