-
Notifications
You must be signed in to change notification settings - Fork 179
/
Makefile
48 lines (33 loc) · 636 Bytes
/
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
-include config.mk
.PHONY: test
all: lisp
PKG = rust-mode
EMACS ?= emacs
EMACS_ARGS ?=
EASK ?= eask
DEPS =
LOAD_PATH ?= $(addprefix -L ../,$(DEPS))
LOAD_PATH += -L .
# TODO: add checkdoc and lint
ci: build compile test
build:
$(EASK) package
$(EASK) install
compile:
@printf "Compiling $<\n"
$(EASK) compile
test:
$(EASK) test ert rust-mode-tests.el
$(EASK) test ert rust-cargo-tests.el
checkdoc:
$(EASK) lint checkdoc
lint:
$(EASK) lint package
CLEAN = $(PKG)-autoloads.el
clean:
@printf "Cleaning...\n"
@rm -rf $(CLEAN)
$(EASK) clean all
$(PKG)-autoloads.el:
@printf "Generating $@\n"
$(EASK) autoloads