my-repo-pins/Makefile
Félix Baylac-Jacqué c058603766
Rename the project
Hinted by the Melpa maintainers here:
https://github.com/melpa/melpa/pull/8093

Using a single letter name was a mistake. Renaming the project to
something a bit more sensible. Maybe not too sensible that being said:
we had to adopt a pun.

Kudos to Wiwi for the pun: it's perfect.
2022-06-27 18:19:25 +02:00

36 lines
1 KiB
Makefile

# Makefile *shamelessly stolen* from https://github.com/purcell/envrc.
# I love the simplicity of it.
# Thanks Steve <3
EMACS ?= emacs
# A space-separated list of required package names
NEEDED_PACKAGES = package-lint seq inheritenv
INIT_PACKAGES="(progn \
(require 'package) \
(push '(\"melpa\" . \"https://melpa.org/packages/\") package-archives) \
(package-initialize) \
(dolist (pkg '(${NEEDED_PACKAGES})) \
(unless (package-installed-p pkg) \
(unless (assoc pkg package-archive-contents) \
(package-refresh-contents)) \
(package-install pkg))) \
)"
all: compile test package-lint clean-elc
test:
${EMACS} -Q --eval ${INIT_PACKAGES} --batch -l my-repo-pins.el -l my-repo-pins-tests.el -f ert-run-tests-batch-and-exit
package-lint:
${EMACS} -Q --eval ${INIT_PACKAGES} --batch -f package-lint-batch-and-exit my-repo-pins.el
compile: clean-elc
${EMACS} -Q --eval ${INIT_PACKAGES} -L . --batch -f batch-byte-compile *.el
clean:
rm -f f.elc
.PHONY: all compile clean-elc package-lint test