summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: ac2adc93f852190c49f8d2df1bb513479e45f762 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# This makex file is just a convenient interface for some useful commands.

.PHONY: all build doc env install

all: cgserver.nix

build:
	load-env-cgserver-2 cabal build

doc:
	load-env-cgserver-2 cabal haddock --executable

env:
	nix-env -f env.nix -i

install:
	nix-env -f . -i

%.nix: %.cabal
	cabal2nix . > $@