forked from facebook/pyre-check
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (40 loc) · 1.22 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
# Copyright (c) 2016-present, Facebook, Inc.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
.PHONY: all
all: configure dev
.PHONY: dev
dev:
@./scripts/generate-version-number.sh development
dune build @install -j auto --profile dev
.PHONY: test
test: configure
@OUNIT_SHARDS="1" dune runtest -j auto --profile dev
.PHONY: python_tests
python_tests:
./scripts/run-python-tests.sh
.PHONY: server_integration_test
server_integration_test: all
PYRE_BINARY="$(shell pwd)/_build/default/main.exe" ./scripts/run_integration_test.py command/test/integration/fake_repository/
.PHONY: stubs_integration_test
stubs_integration_test: all
PYRE_BINARY="$(shell pwd)/_build/default/main.exe" make -C stubs/integration_test
.PHONY: fbtest
fbtest: all
if [ -d "$(shell pwd)/facebook" ]; then make -C facebook; fi
.PHONY: release
release:
@./scripts/generate-version-number.sh
dune build @install -j auto --profile release
.PHONY: clean
clean:
dune clean
@if [ -f dune ]; then rm dune; fi
.PHONY: configure
configure: dune;
dune: dune.in
./scripts/setup.sh --configure
.PHONY: lint
lint:
find -name "*.ml" | grep -v build | grep -v hack | xargs ocp-indent -i