aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 7f2c9d42ffa48d6f560da2d5ca7ce4e6f11ad560 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
all: 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