summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authortv <tv@nomic.retiolum>2016-03-05 22:14:33 +0100
committertv <tv@nomic.retiolum>2016-03-05 22:14:33 +0100
commit4b2678b530ccf98061f3372d76e472af2e9359b3 (patch)
tree089d5737dce98fb6c2dec895d63563aa0d6c484d /Makefile
parent0d6c67cb9ea75c3afc343dcc9e6e9e0318e1b260 (diff)
Makefile: bump
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 14 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index f939081..dbd3b4a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,18 +1,25 @@
-.PHONY: ghci
-ghci: shell.nix
- nix-shell --arg nixpkgs 'import <stockholm>' --command 'exec ghci -Wall'
-
-shell.nix: $(wildcard *.cabal)
- cabal2nix --shell . > $@
+.PHONY: _default
+_default: ghci
.PHONY: clean
clean:
@find * -type f \( -name \*.o -o -name \*.hi \) -exec rm -v \{\} \;
+.PHONY: ghci
+ghci: shell.nix
+ nix-shell --arg nixpkgs 'import <stockholm>' --command 'exec ghci -Wall -fobject-code'
+
.PHONY: install
install:
- nix-env --arg target "$$(cabal2nix .)" -f install.nix -i
+ $(error to install run "make result && nix-env -i ./result")
.PHONY: install-env
install-env:
nix-env -f env.nix -i
+
+.PHONY: result
+result: shell.nix
+ nix-build --arg nixpkgs 'import <stockholm>' ./shell.nix
+
+shell.nix: $(wildcard *.cabal)
+ cabal2nix --shell . > $@