-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (36 loc) · 1.07 KB
/
Copy pathMakefile
File metadata and controls
44 lines (36 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
EMACS ?= emacs
# A space-separated list of required package names
DEPS = gptel
INIT_PACKAGES="(progn \
(require 'package) \
(push '(\"melpa\" . \"https://melpa.org/packages/\") package-archives) \
(package-initialize) \
(dolist (pkg '(PACKAGES)) \
(unless (package-installed-p pkg) \
(unless (assoc pkg package-archive-contents) \
(package-refresh-contents)) \
(package-install pkg))) \
)"
all: compile package-lint test clean-elc
package-lint:
${EMACS} -Q --eval $(subst PACKAGES,package-lint,${INIT_PACKAGES}) \
-batch \
-f package-lint-batch-and-exit \
gptel-cpp-complete.el \
gptel-cpp-complete-test.el
compile: clean-elc
${EMACS} -Q --eval $(subst PACKAGES,${DEPS},${INIT_PACKAGES}) \
-L . \
-batch \
-f batch-byte-compile \
gptel-cpp-complete.el \
gptel-cpp-complete-test.el
test: clean-elc
${EMACS} -Q --eval $(subst PACKAGES,${DEPS},${INIT_PACKAGES}) \
-L . \
-batch \
-l gptel-cpp-complete-test \
--eval '(gptel-cpp-complete-run-tests)'
clean-elc:
rm -f *.elc
.PHONY: all compile test clean-elc package-lint