Makefile: define nixos-config using ?=
This commit is contained in:
parent
e58921e546
commit
17be0772c5
5
Makefile
5
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
|
||||
|
Loading…
Reference in New Issue
Block a user