This repository has been archived by the owner on Jun 9, 2020. It is now read-only.
forked from stan-dev/stanc3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (29 loc) · 1.42 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
all:
dune build src/stanc/stanc.exe
TEST_DUNES := $(foreach d,$(shell find test/integration -type d),$(d)/dune)
test: $(TEST_DUNES)
dune runtest
format:
dune build @fmt
cross:
dune build src/stanc/stanc.exe -x windows
static:
dune build src/stanc/stanc.exe --profile static
clean:
dune clean
re: clean all
test/integration/examples-good/%/dune: test/integration/examples-good/dune
echo "(include `echo "$*/" | sed -e "s|[^/]*/|../|g"`dune)" > $@
test/integration/examples-bad/%/dune: test/integration/examples-bad/dune
echo "(include `echo "$*/" | sed -e "s|[^/]*/|../|g"`dune)" > $@
test/integration/included/%/dune: test/integration/included/dune
echo "(include `echo "$*/" | sed -e "s|[^/]*/|../|g"`dune)" > $@
test/integration/model-name/%/dune: test/integration/model-name/dune
echo "(include `echo "$*/" | sed -e "s|[^/]*/|../|g"`dune)" > $@
test/integration/rstanarm/%/dune: test/integration/rstanarm/dune
echo "(include `echo "$*/" | sed -e "s|[^/]*/|../|g"`dune)" > $@
test/integration/example-models/%/dune: test/integration/example-models/dune
echo "(include `echo "$*/" | sed -e "s|[^/]*/|../|g"`dune)" > $@
OG_TEST_DUNES := test/integration/dune test/integration/examples-bad/dune test/integration/examples-good/dune test/integration/included/dune test/integration/model-name/dune test/integration/rstanarm/dune test/integration/example-models/dune
clean-test-dunes:
rm -rf $(filter-out $(OG_TEST_DUNES),$(TEST_DUNES))