-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
49 lines (40 loc) · 1.2 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
TEST_BAR_ELM_MODULE=Bar
TEST_FOO_ELM_MODULE=Foo
.PHONY: all
all: build
.PHONY: build
build: src/*
rm -f ./apbuf
dune build -p apbuf
cp ./_build/default/src/apbuf.exe ./apbuf
.PHONY: install
install: src/* build
dune build -p apbuf @install
dune install
.PHONY: clean
clean:
dune clean
rm -f ./apbuf
.PHONY: clean-test
clean-test:
rm -f examples/gen/elm/src/*.elm
rm -f examples/gen/sesterl/src/*.elm
rm -f examples/gen/play-scala-seed/app/assets/apbuf/*.scala
.PHONY: test
test: test-bar test-foo
.PHONY: test-bar
test-bar: install
mkdir -p examples/gen/elm/src/
mkdir -p examples/gen/sesterl/src/
apbuf examples/bar.txt
cd examples/gen/elm && elm make src/$(TEST_BAR_ELM_MODULE).elm && cd ../../..
cd examples/gen/sesterl && sesterl config ./ && rebar3 sesterl compile && cd ../../..
cd examples/gen/play-scala-seed && sbt compile && cd ../../..
.PHONY: test-foo
test-foo: install
mkdir -p examples/gen/elm/src/
mkdir -p examples/gen/sesterl/src/
apbuf examples/foo.txt
cd examples/gen/elm && elm make src/$(TEST_FOO_ELM_MODULE).elm && cd ../../..
cd examples/gen/sesterl && sesterl config ./ && rebar3 sesterl compile && cd ../../..
cd examples/gen/play-scala-seed && sbt compile && cd ../../..