Skip to content

Commit 5af1707

Browse files
committed
Add Makefile
1 parent 2299cd7 commit 5af1707

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
*-autoloads.el
2+
*.elc
13
.cask
2-
vendor
34
composer.lock
5+
vendor/*

Makefile

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

0 commit comments

Comments
 (0)