-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (28 loc) · 718 Bytes
/
Makefile
File metadata and controls
38 lines (28 loc) · 718 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
33
34
35
36
37
38
.PHONY: compile test clean clean-elc clean-deps
EMACS = emacs
FLAGS =
CASK = cask
SRCS = flycheck-checkbashisms.el
OBJECTS = $(SRCS:.el=.elc)
BATCH = $(EMACS) -Q --batch $(FLAGS)
VERSION := $(shell EMACS=$(EMACS) $(CASK) version)
PKGDIR := $(shell EMACS=$(EMACS) $(CASK) package-directory)
compile: $(OBJECTS)
# Testing
test:
$(CASK) exec $(BATCH) \
-l flycheck-checkbashisms.el \
-l test/flycheck-checkbashisms-test.el \
-f ert-run-tests-batch-and-exit
$(PKGDIR) : Cask
$(CASK) install
touch $(PKGDIR)
%.elc : %.el $(PKGDIR)
$(CASK) exec $(BATCH) -f batch-byte-compile $<
# Cleanup
clean-elc:
rm -rf $(OBJECTS)
clean-dist: ;
clean-deps:
rm -rf .cask/
clean: clean-elc clean-dist clean-deps