-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (35 loc) · 958 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
40
41
42
43
44
45
46
47
48
DSLS := $(wildcard dsls/*)
LSPS := $(wildcard lsps/*)
.PHONY: all clean vscode-client $(DSLS) $(LSPS)
all: $(DSLS) $(LSPS) vscode-client
clean:
@for d in $(DSLS); do \
echo "-- [Cleaning DSL $$d] --"; \
make -C $$d clean; \
done
@for l in $(LSPS); do \
echo "-- [Cleaning LSP $$l] --"; \
make -C $$l clean; \
done
@echo "-- [Cleaning VSCode extension] --"
make -C lsp-client clean
# -- DSLs --
$(DSLS):
@echo "-- [Building DSL $@] --"
make -C $@
# -- LSPs --
$(LSPS):
@echo "-- [Building LSP $@] --"
make -C $@
# -- VSCode extension --
vscode-client: lsps/mcore
@echo "-- [Building VSCode extension] --"
rm -rf lsp-client/mcore lsp-client/out
mkdir -p lsp-client/mcore lsp-client/out
cp -r ./{lsp-server,lib} lsp-client/mcore
mkdir -p lsp-client/mcore/lsps/mcore
cp -r lsps/mcore/*.mc lsp-client/mcore/lsps/mcore
rm -rf lsp-client/stdlib
mkdir -p lsp-client/stdlib
cp -r ../miking/stdlib lsp-client
make -C lsp-client