Skip to content

Commit 47178d3

Browse files
committed
Add Makefile
1 parent 912b02a commit 47178d3

File tree

2 files changed

+32
-6
lines changed

2 files changed

+32
-6
lines changed

Cask

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,3 @@
33

44
(package "right-click-context" "0.2.0" "Right Click Context menu")
55
(package-file "right-click-context.el")
6-
7-
(development
8-
(depends-on "ert")
9-
(depends-on "ert-runner")
10-
(depends-on "noflet")
11-
(depends-on "undercover"))

Makefile

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
CASK ?= cask
2+
EMACS ?= emacs
3+
ELS = right-click-context.el
4+
AUTOLOADS = right-click-context-autoload.el
5+
ELCS = $(ELS:.el=.elc)
6+
7+
.cask: Cask
8+
CASK
9+
10+
%.elc: %.el .cask
11+
$(EMACS) -Q -batch -L . --eval \
12+
"(let ((default-directory (expand-file-name \".cask\" default-directory))) \
13+
(normal-top-level-add-subdirs-to-load-path))" \
14+
-f batch-byte-compile $<
15+
16+
all: autoloads $(ELCS)
17+
18+
autoloads: $(AUTOLOADS)
19+
20+
$(AUTOLOADS): $(ELCS)
21+
$(EMACS) -Q -batch -L . --eval \
22+
"(progn \
23+
(require 'package) \
24+
(package-generate-autoloads \"right-click-context\" default-directory))"
25+
26+
clean:
27+
-rm -f $(ELCS) $(AUTOLOADS)
28+
29+
clobber: clean
30+
-rm -rf .cask
31+
32+
.PHONY: all autoloads clean clobber

0 commit comments

Comments
 (0)