summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-06-13 17:27:46 +0200
committertv <tv@krebsco.de>2016-06-13 17:27:46 +0200
commite3b026d459fde1ec84a335e975da0c61122487f3 (patch)
tree3653b1f8d3a6b4340b3fe6f7cd96fc86f9b3c238
parente3933eb05e3c3164445f11e8499033b2d63c3f88 (diff)
Makefile: assert existence of $(nixos-config)
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 6e09559..aa5d5d8 100644
--- a/Makefile
+++ b/Makefile
@@ -13,6 +13,9 @@ system ?= $(HOSTNAME)
$(if $(system),,$(error unbound variable: system))
nixos-config ?= $(stockholm)/$(LOGNAME)/1systems/$(system).nix
+ifneq ($(words $(wildcard $(nixos-config))),1)
+$(error bad nixos-config: $(nixos-config))
+endif
# target = [target_user@]target_host[:target_port][/target_path]
ifdef target