From 5bc3fa88543cdf3aa5b9103f7423a2af490b3d08 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 13 Jun 2016 17:27:46 +0200 Subject: Makefile: assert existence of $(nixos-config) --- Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 6e09559b6..aa5d5d8ca 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 -- cgit v1.2.3 [cgit] Unable to lock slot /tmp/cgit/e2300000.lock: No such file or directory (2)