From c16f813802b246bc4dd9df20930a3bf5d45f3029 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 5 Nov 2014 05:12:33 +0100 Subject: add Makefile --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e2fad80 --- /dev/null +++ b/Makefile @@ -0,0 +1,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-1 cabal build + +doc: + load-env-cgserver-1 cabal haddock --executable + +env: + nix-env -f env.nix -i + +install: + nix-env -f . -i + +%.nix: %.cabal + cabal2nix . > $@ -- cgit v1.2.3