aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: e87bf64630f5d7d8391bd8cd10ec0d879cd4580f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
all: build

clean:
	@cabal clean > /dev/null

install:
	@cabal2nix --shell . > leboncoin-listener.nix
	@nix-shell leboncoin-listener.nix -I ~ --command 'cabal configure'

watch:
	@nodemon -e hs,conf --exec 'make build-and-launch'

build-and-launch:
	@(pkill leboncoin-listener || true) && (cabal run || true)

.PHONY: build
build:
	@cabal build || true