Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (37 sloc) 1.25 KB
# Clone the dependencies of this package in sibling directories:
# $ git clone ../js2-mode
# $ git clone ../simple-httpd
# Or set LDFLAGS to point at these packages elsewhere:
# $ make LDFLAGS='-L path/to/js2-mode -L path/to/simple-httpd'
.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.8.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 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)
run: compile
$(EMACS) -Q -L . $(LDFLAGS) \
-l skewer-mode.elc -l skewer-setup.elc -f skewer-setup \
--eval "(setf initial-scratch-message nil)" \
-f js2-mode -f run-skewer
rm -rf skewer-mode-$(VERSION) skewer-mode-$(VERSION).tar $(ELC)
You can’t perform that action at this time.