forked from skeeto/skewer-mode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (27 loc) · 839 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
## Use LDFLAGS to add (-L) simple-httpd and js2-mode to the load-path
.POSIX:
.SUFFIXES: .el .elc
EMACS = emacs
LDFLAGS = -L ../simple-httpd -L ../js2-mode
BATCH = $(EMACS) -Q -batch -L . $(LDFLAGS)
COMPILE = $(BATCH) -f batch-byte-compile
VERSION = 1.7.0
EL = skewer-mode.el skewer-setup.el cache-table.el \
skewer-bower.el skewer-css.el skewer-html.el skewer-repl.el
ELC = $(EL:.el=.elc)
PKG = skewer-mode-pkg.el
DIST = $(PKG) $(EL) skewer.js example.html README.md UNLICENSE
compile: $(ELC)
all: compile package
package: skewer-mode-$(VERSION).tar
skewer-mode-$(VERSION): $(DIST)
mkdir -p $@
cp $(DIST) $@/
touch $@/
skewer-mode-$(VERSION).tar: skewer-mode-$(VERSION)
tar cf $@ skewer-mode-$(VERSION)/
compile: $(ELC)
clean:
rm -rf skewer-mode-$(VERSION) skewer-mode-$(VERSION).tar $(ELC)
.el.elc:
$(COMPILE) $<