-
-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (23 loc) · 671 Bytes
/
Makefile
File metadata and controls
32 lines (23 loc) · 671 Bytes
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
CASK = cask
EMACS = emacs
EMACSFLAGS =
TESTFLAGS =
export EMACS
PKGDIR := $(shell EMACS=$(EMACS) $(CASK) package-directory)
SRCS = puppet-mode.el
OBJS = $(SRCS:.el=.elc)
.PHONY: compile test clean
compile: $(OBJS)
clean:
rm -f $(OBJS)
test: $(PKGDIR)
$(CASK) exec ert-runner $(TESTFLAGS)
%.elc : %.el $(PKGDIR)
$(CASK) exec $(EMACS) -Q --batch $(EMACSFLAGS) -f batch-byte-compile $<
$(PKGDIR) : Cask
@# this is a load bearing --verbose
@# without it pkg-info fails to install in emacs 25.3 with the error
@# Dependency pkg-info failed to install: Wrong type argument: stringp, nil
@# Most likely a bug in cask.
$(CASK) --verbose install
touch $(PKGDIR)