forked from netguy204/imp.el
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Makefile
37 lines (29 loc) · 1.06 KB
/
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
# Clone the two dependencies of this package in sibling directories:
# $ git clone https://github.com/hniksic/emacs-htmlize ../htmlize
# $ git clone https://github.com/skeeto/emacs-web-server ../simple-httpd
#
# Or set LDFLAGS to point at these packages elsewhere:
# $ make LDFLAGS='-L path/to/htmlize -L path/to/simple-httpd'
.POSIX:
.SUFFIXES: .el .elc
EMACS = emacs
LDFLAGS = -L ../simple-httpd -L ../htmlize
VERSION = 1.1
DIST = README.md loading.html jquery.js index.html
all: compile
compile: impatient-mode.elc
package: impatient-mode-$(VERSION).tar
impatient-mode-$(VERSION).tar: impatient-mode.el $(DIST)
rm -rf impatient-mode-$(VERSION)/
mkdir impatient-mode-$(VERSION)/
cp impatient-mode.el $(DIST) impatient-mode-$(VERSION)/
tar cf $@ impatient-mode-$(VERSION)/
rm -rf impatient-mode-$(VERSION)/
clean:
rm -f impatient-mode-$(VERSION).tar impatient-mode.elc
run: impatient-mode.elc
$(EMACS) -Q $(LDFLAGS) -l impatient-mode.elc \
impatient-mode.el \
-f impatient-mode -f httpd-start
.el.elc:
$(EMACS) -Q -batch $(LDFLAGS) -f batch-byte-compile $<