-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
56 lines (34 loc) · 811 Bytes
/
Makefile
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
EMACS ?= emacs
CASK ?= cask
CASKED_EMACS = $(CASK) exec $(EMACS)
DISTDIR := dist
project := autodisass-java-bytecode
project_version := $(shell $(CASK) version)
project_pkgdir := $(shell $(CASK) package-directory)
export EMACS
all: $(project)-pkg.el compile
deps: | $(project_pkgdir)
compile: deps
$(CASK) build
run:
$(CASKED_EMACS) -Q -l $(project).el
# Cleaning targets
clean: clean-elc clean-dist
distclean: clean clean-deps
clean-dist:
rm -rf $(DISTDIR)/
clean-elc:
$(CASK) clean-elc
clean-deps:
rm -rf .cask/
dist:
$(CASK) package $(DISTDIR)
.PHONY: all compile run \
clean clean-deps clean-elc clean-dist \
dist distclean deps
# Package descriptor file
$(project)-pkg.el: $(project).el Cask
$(CASK) pkg-file
# Package directory
$(project_pkgdir):
$(CASK) install