Debian Codegraph @

Makefile

raw
1 EMACS ?= emacs
2
3 # A space-separated list of required package names
4 NEEDED_PACKAGES = package-lint flycheck
5
6 INIT_PACKAGES="(progn \
7 (require 'package) \
8 (push '(\"melpa\" . \"https://melpa.org/packages/\") package-archives) \
9 (package-initialize) \
10 (dolist (pkg '(${NEEDED_PACKAGES})) \
11 (unless (package-installed-p pkg) \
12 (unless (assoc pkg package-archive-contents) \
13 (package-refresh-contents)) \
14 (package-install pkg))) \
15 )"
16
17 all: compile package-lint clean-elc
18
19 package-lint:
20 ${EMACS} -Q --eval ${INIT_PACKAGES} -batch -f package-lint-batch-and-exit flycheck-package.el
21
22 compile: clean-elc
23 ${EMACS} -Q --eval ${INIT_PACKAGES} -L . -batch -f batch-byte-compile *.el
24
25 clean-elc:
26 rm -f f.elc
27
28 .PHONY: all compile clean-elc package-lint