-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
65 lines (53 loc) · 1.12 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#
# Build and install code generators and runtime support for generated parsers.
#
# Building and installing support for specific programming languages is done in
# a second phase, in lang/
#
PROJECT_ROOT = $(shell pwd)
.PHONY: build
build:
cd core && ./configure
$(MAKE) -C core build
# Full development setup.
.PHONY: setup
setup:
cd core && ./configure
$(MAKE) -C core setup
# Shortcut for updating the git submodules.
.PHONY: update
update:
git submodule update --init --recursive --depth 1
.PHONY: clean
clean:
rm -rf bin
make -C lang clean
.PHONY: distclean
distclean:
# remove everything that's git-ignored
git clean -dfX
# Run core tests
.PHONY: test
test: build
$(MAKE) -C core test
# Build and test all the production languages.
.PHONY: lang
lang: build
$(MAKE) -C lang
# Run parsing stats for the supported languages in lang/.
.PHONY: stat
stat:
$(MAKE) -C lang
$(MAKE) -C lang stat
# ugly: but split make stat in 2 to pass the 3h CI limit
.PHONY: stat1
stat1:
$(MAKE) -C lang
$(MAKE) -C lang stat1
.PHONY: stat2
stat2:
$(MAKE) -C lang
$(MAKE) -C lang stat2
.PHONY: install
install:
$(MAKE) -C core install