summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
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 . > $@