-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
45 lines (31 loc) · 783 Bytes
/
makefile
File metadata and controls
45 lines (31 loc) · 783 Bytes
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
.PHONY: help
help: makefile
@tail -n +4 makefile | grep ".PHONY"
# Include the readme.md file in each language directory
.PHONY: build
build: readme.md
cp $< Elm
cp $< Haskell
cp $< JavaScript
.PHONY: test
test: test-elm test-haskell test-javascript
.PHONY: test-elm
test-elm:
@printf "\n\n========== ELM TESTS ==========\n\n"
cd Elm && npx elm-test
.PHONY: test-haskell
test-haskell:
@printf "\n\n========== HASKELL TESTS ==========\n\n"
cd Haskell && stack test
.PHONY: test-javascript
test-javascript:
@printf "\n\n========== JAVASCRIPT TESTS ==========\n\n"
bun run JavaScript/test.ts
.PHONY: docs
docs:
cd Haskell && stack haddock --haddock-for-hackage
.PHONY: release
release: docs
cd Haskell \
&& stack upload . \
&& stack upload --documentation .