forked from fsharp/emacs-fsharp-mode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (29 loc) · 834 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
37
38
39
all: build
export EMACS ?= emacs
EMACSFLAGS = -L .
CASK = cask
VERSION = $(shell git describe --tags --abbrev=0 | sed 's/^v//')
PKG = fsharp-mode
elpa-$(EMACS):
$(CASK) install
$(CASK) update
touch $@
test/eglot-tests.el:
curl -o eglot-tests.el https://raw.githubusercontent.com/joaotavora/eglot/master/eglot-tests.el
elpa: elpa-$(EMACS)
build: elpa version
$(CASK) build
version:
$(EMACS) --version
test/Test1/restored:
dotnet restore test/Test1
touch test/Test1/restored
test: version build test/eglot-tests.el test/Test1/restored
$(CASK) exec buttercup -L . -L ./test --traceback full
clean:
rm -f .depend elpa-$(EMACS) $(OBJECTS) $(PKG)-autoloads.el
elpaclean: clean
rm -f elpa*
rm -rf .cask # Clean packages installed for development
run-$(PKG): elpa
cask exec $(EMACS) -Q -L . --eval "(require '$(PKG))"