forked from dylan-lang/lsp-dylan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (25 loc) · 895 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
# NOTE: This depends on the dylan-compiler -unify flag, so requires a release
# after 2020.1.
DYLAN ?= $${HOME}/dylan
install_bin = $(DYLAN)/bin
app_name = dylan-lsp-server
build: sources/*.dylan sources/lsp-dylan.lid sources/server.lid
dylan build --unify $(app_name)
install: build
mkdir -p $(install_bin)
if [[ -d "_build" ]]; then \
cp _build/sbin/$(app_name) $(install_bin)/; \
else \
cp ../_build/sbin/$(app_name) $(install_bin)/; \
fi
test: sources/*-tests.dylan sources/test-suite*.dylan sources/test-suite.lid
dylan build lsp-dylan-test-suite
if [[ -d "_build" ]]; then \
_build/bin/lsp-dylan-test-suite ; \
else \
../_build/bin/lsp-dylan-test-suite ; \
fi
clean:
rm -rf _build
distclean: clean
rm -f $(install_bin)/$(app_name)