Makefile: define nixos-config using ?=

This commit is contained in:
tv 2016-03-10 12:41:24 +01:00
parent e58921e546
commit 17be0772c5

View File

@ -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