Makefile

blankhart 2018-03-08 02:16:29.534212 UTC

1help:
2 cat Makefile
3
4.PHONY: build.project
5build.project:
6 nix-build
7
8.PHONY: build.client
9build.client:
10 nix-build -A client
11
12.PHONY: build.server
13build.server:
14 nix-build -A server
15
16# When using nix-shell, it is critical to append the ".env"
17
18.PHONY: shell.client
19shell.client:
20 nix-shell -A client.env --command 'cd client; cabal configure; cd ..; return'
21
22.PHONY: shell.server
23shell.server:
24 nix-shell -A server.env --command 'cd server; cabal configure; cd ..; return'