aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoris2021-01-03 13:40:40 +0100
committerJoris2021-01-03 13:54:20 +0100
commit11052951b74b9ad4b6a9412ae490086235f9154b (patch)
tree64526ac926c1bf470ea113f6cac8a33158684e8d /Makefile
parent371449b0e312a03162b78797b83dee9d81706669 (diff)
Rewrite in Rust
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile62
1 files changed, 0 insertions, 62 deletions
diff --git a/Makefile b/Makefile
deleted file mode 100644
index 46bbcc7..0000000
--- a/Makefile
+++ /dev/null
@@ -1,62 +0,0 @@
-start:
- @nix-shell nix/tools.nix --command "tmuxinator local"
-
-stop:
- @tmux kill-session -t sharedCost
-
-clean: clean-server clean-client
-
-build: build-server build-client cp-client
-
-# Client
-# ------
-
-clean-client:
- @rm -rf dist-client
-
-build-client:
- @nix-shell -A shells.ghcjs --run "make build-client-inside"
-
-build-client-inside:
- @cabal --project-file=cabal-client.project --builddir=dist-client new-build all
-
-cp-client:
- @cp dist-client/build/x86_64-linux/ghcjs-*/client-*/*/client/build/client/client.jsexe/all.js public/javascript/main.js
-
-watch-client:
- @nix-shell -A shells.ghcjs --run "nodemon --delay 0.2 --watch client --watch common --ext hs --exec '(tput reset && make build-client-inside && make cp-client) || true'"
-
-# Server
-# ------
-
-clean-server:
- @rm -rf dist-server
-
-build-server:
- @nix-shell -A shells.ghc --run "make build-server-inside"
-
-build-server-inside:
- @cabal --project-file=cabal-server.project --builddir=dist-server new-build all
-
-run-server:
- @(fuser -k 3000/tcp &>/dev/null) || :
- @./dist-server/build/x86_64-linux/ghc-*/server-0.0.1/*/server/build/server/server
-
-watch-server:
- @nix-shell -A shells.ghc --run "nodemon --delay 0.2 --watch ./server --watch ./common --ext hs --exec '(tput reset && make build-server-inside && make run-server) || :'"
-
-# Deploy
-# ------
-
-deploy:
- @make clean
- @nix-build -o result-server -A ghc.server
- @nix-build -o result-client -A ghcjs.client
- @nix-shell -p closurecompiler --command 'closure-compiler result-client/bin/client.jsexe/all.js --js_output_file public/javascript/main.js'
- @rm -rf bundle
- @mkdir bundle
- @cp application.conf bundle
- @cp -r public bundle
- @cp result-server/bin/server bundle
- @rsync -avzhr bundle/ guyonvarch.me:servers/shared-cost
- @rm -rf bundle