aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoris2016-07-14 11:57:12 +0000
committerJoris2016-07-14 12:00:05 +0000
commit69e69017b75d1cdaa1fd2aef2818de5111b29735 (patch)
tree99dba8f67dc1c55b2cc22f33f81c59c7355b337b /Makefile
parent04f9a66c66ca137d9fee6ccca228c41fec960fe0 (diff)
downloadad-listener-69e69017b75d1cdaa1fd2aef2818de5111b29735.tar.gz
ad-listener-69e69017b75d1cdaa1fd2aef2818de5111b29735.tar.bz2
ad-listener-69e69017b75d1cdaa1fd2aef2818de5111b29735.zip
Update code and fix parsers
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..853f814
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+all: install build
+
+clean:
+ @cabal clean > /dev/null
+ @rm -r node_modules >/dev/null 2>&1 || true
+
+install:
+ @cabal2nix --shell . > leboncoin-listener.nix
+ @nix-shell leboncoin-listener.nix -I ~ --command 'cabal configure'
+ @npm install
+
+watch:
+ @./node_modules/nodemon/bin/nodemon.js -e hs,conf --exec 'make build-and-launch'
+
+build-and-launch:
+ @(pkill leboncoin-listener || true) && (cabal run || true)
+
+build:
+ @cabal build || true