forked from haskell-servant/servant-elm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (32 loc) · 1.37 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
.PHONY: all
all: test examples
.PHONY: test
test:
stack test --flag servant-elm:integration
.PHONY: examples
examples: build-with-examples-flag books-example e2e-tests-example giphy-example readme-example
.PHONY: build-with-examples-flag
build-with-examples-flag:
stack build --flag servant-elm:examples
.PHONY: books-example
books-example: examples/books/elm/Generated/BooksApi.elm
examples/books/elm/Generated/BooksApi.elm: examples/books/generate.hs
cd examples/books && stack runghc generate.hs
.PHONY: e2e-tests-example
e2e-tests-example: examples/e2e-tests/elm/Generated/Api.elm
examples/e2e-tests/elm/Generated/Api.elm: examples/e2e-tests/generate.hs
cd examples/e2e-tests && stack runghc generate.hs
.PHONY: giphy-example
giphy-example: examples/giphy/elm/Generated/GiphyApi.elm
examples/giphy/elm/Generated/GiphyApi.elm: examples/giphy/generate.hs
cd examples/giphy && stack runghc generate.hs
.PHONY: readme-example
readme-example: examples/readme-example/my-elm-dir/Generated/MyApi.elm
examples/readme-example/my-elm-dir/Generated/MyApi.elm: examples/readme-example/generate.hs
cd examples/readme-example && stack runghc generate.hs
.PHONY: clean
clean:
rm -f examples/books/elm/Generated/BooksApi.elm \
examples/e2e-tests/elm/Generated/Api.elm \
examples/giphy/elm/Generated/GiphyApi.elm \
examples/readme-example/my-elm-dir/Generated/MyApi.elm