Skip to content

Commit 6c57705

Browse files
committed
Fix Makefile so that we can compile
The functionality has been ported from cider, we can now use the make command to install elpa packages and compile. This is still not perfect because in theory we should not install things from elpa if we have them in our Emacs but it would take more work for achieving that.
1 parent 1ccef7b commit 6c57705

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
# Emacs byte-compiled files
77
*.elc
88
.cask
9+
elpa*

Makefile

+12-3
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,23 @@ PKGDIR := $(shell EMACS=$(EMACS) $(CASK) package-directory)
88
SRCS = $(wildcard *.el)
99
OBJS = $(SRCS:.el=.elc)
1010

11-
.PHONY: compile test clean
11+
.PHONY: compile test clean elpa
1212

13-
elpa:
13+
all: compile
14+
15+
elpa-$(EMACS):
1416
$(CASK) install
1517
$(CASK) update
1618
touch $@
1719

18-
compile: $(OBJS)
20+
elpa: elpa-$(EMACS)
21+
22+
elpaclean:
23+
rm -f elpa*
24+
rm -rf .cask # Clean packages installed for development
25+
26+
compile: elpa
27+
$(CASK) build
1928

2029
clean:
2130
rm -f $(OBJS)

0 commit comments

Comments
 (0)