-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
39 lines (26 loc) · 975 Bytes
/
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
.PHONY: build-backend build-octo-cli build-frontend docs backend-docs frontend-docs repl shell shell-ghcjs ghcid ghcid-cli ghcid-frontend push-octopod
build-backend:
nix-build . -A ghc.octopod-backend
build-octo-cli:
nix-build . -A ghc.octo-cli
build-frontend:
nix-build . -A ghcjs.octopod-frontend -o frontend-result
docs: backend-docs frontend-docs
backend-docs:
nix-build . -A ghc.octopod-backend.doc
frontend-docs:
nix-build . -A ghcjs.octopod-frontend.doc
repl:
nix-shell . -A shells.ghc --run "cabal repl lib:octopod-backend"
shell:
nix-shell . -A shells.ghc
shell-ghcjs:
nix-shell . -A shells.ghcjs
ghcid-backend:
nix-shell . -A shells.ghc --run 'ghcid -c "cabal new-repl octopod-backend"'
ghcid-cli:
nix-shell . -A shells.ghc --run 'ghcid -c "cabal new-repl octo-cli"'
ghcid-frontend:
nix-shell . -A shells.ghc --run 'ghcid -c "cabal new-repl octopod-frontend -fdevelopment" --test 'Main.main''
push-octopod:
./build.sh build-and-push latest