-
Notifications
You must be signed in to change notification settings - Fork 90
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (27 loc) · 749 Bytes
/
Copy pathMakefile
File metadata and controls
32 lines (27 loc) · 749 Bytes
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
# Makefile for Edit with Emacs
.PHONY: test release
# Get the version from manifest.json
VERSION := $(shell grep "\"version\"" manifest.json | cut -d: -f2 | cut -d\" -f2)
NAME=edit-with-emacs
RELEASE_NAME=edit-with-emacs-$(VERSION)
RELEASE_ZIP=$(RELEASE_NAME).zip
# Files to include in the release zip.
# We have to be careful not to include any dev tooling or secrets.
FILES = \
manifest.json \
icons \
html \
javascript \
css \
lib \
fancy-settings \
servers/edit-server.el \
README.md \
COPYING \
NEWS
test:
emacs -Q --batch -l tests/install-prereqs.el
emacs -Q --batch -l ert -l servers/edit-server.el -l servers/edit-server-ert.el -f ert-run-tests-batch-and-exit
release:
rm -f $(RELEASE_ZIP)
zip -r $(RELEASE_ZIP) $(FILES)