-
-
Notifications
You must be signed in to change notification settings - Fork 339
/
Copy pathMakefile
71 lines (56 loc) · 1.67 KB
/
Makefile
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Build and test Ivy from a source checkout.
# Copyright (C) 2015-2025 Free Software Foundation, Inc.
#
# This file is part of GNU Emacs.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
EMACS ?= emacs
RM ?= rm -f
opt-elcs := \
ivy-avy.elc \
ivy-hydra.elc
src-elcs := \
colir.elc \
ivy-faces.elc \
ivy-overlay.elc \
ivy.elc \
swiper.elc \
counsel.elc \
$(opt-elcs)
test-elcs := ivy-test.elc
.PHONY: all
all: compile
.PHONY: deps
deps:
$(EMACS) -Q -batch -l targets/elpa.el -f ivy--elpa-install
.PHONY: compile
compile: $(src-elcs)
.PHONY: test
test: compile $(test-elcs)
$(EMACS) -Q -batch -L . $(test-elcs:%.elc=-l %) -f ivy-test-run-tests
.PHONY: clean
clean:
$(RM) $(src-elcs) $(test-elcs)
.PHONY: checkdoc
checkdoc:
$(EMACS) -Q -batch -L . -l targets/checkdoc.el $(src-elcs:c=)
.PHONY: check-declare
check-declare:
$(EMACS) -Q -batch -eval '(check-declare-directory ".")'
.PHONY: plain
plain: compile
$(EMACS) -Q -L . -l targets/plain.el
%.elc: %.el
$(EMACS) -Q -batch -L . $(ELCFLAGS) -f batch-byte-compile $<
$(opt-elcs): ELCFLAGS += -l targets/elpa.el -f ivy--elpa-activate