diff options
author | makefu <github@syntax-fehler.de> | 2015-12-22 20:31:21 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2015-12-22 20:31:21 +0100 |
commit | 6c5921c9fc84211b42a93ab715a25dc7d77a1907 (patch) | |
tree | 9f8b1b5b1b00ccae98a69973ed7f30847a72db9b | |
parent | bf1b6482ce3535ef7e7b3f77879def12ff454c0c (diff) |
Makefile: fail if nix-instantiate fails
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -35,7 +35,7 @@ ifeq ($(filter),json) else filter() { cat; } endif - nix-instantiate \ + result=$$(nix-instantiate \ $${extraArgs-} \ --eval \ -A "$$get" \ @@ -45,8 +45,9 @@ endif --argstr current-host-name "$$HOSTNAME" \ --argstr current-user-name "$$LOGNAME" \ $${system+--argstr system "$$system"} \ - $${target+--argstr target "$$target"} \ - | filter + $${target+--argstr target "$$target"}) + echo "$$result" | filter + else $(error unbound variable: system[s]) endif |