summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-03-10 12:41:24 +0100
committertv <tv@krebsco.de>2016-03-10 12:41:24 +0100
commit5cabee62cdef212cf4088d934b92a3b14e947e02 (patch)
tree63545a42c66a5cc6a9ff41ad7930afde2e085e99
parent37ff2437476bf8752643f3735ed3f2b19dbddb40 (diff)
Makefile: define nixos-config using ?=
-rw-r--r--Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index bd45440..7252ca7 100644
--- a/Makefile
+++ b/Makefile
@@ -9,10 +9,9 @@ export STOCKHOLM_VERSION ?= $(shell \
printf '%s' "$$date.$$version"; \
)
-ifndef nixos-config
$(if $(system),,$(error unbound variable: system))
-nixos-config = ./$(LOGNAME)/1systems/$(system).nix
-endif
+
+nixos-config ?= $(stockholm)/$(LOGNAME)/1systems/$(system).nix
# target = [target_user@]target_host[:target_port][/target_path]
ifdef target