Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (29 sloc) 1.06 KB
# 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 $<
You can’t perform that action at this time.