Makefile: assert existence of $(nixos-config)
This commit is contained in:
parent
2dd4dbbf6e
commit
5bc3fa8854
3
Makefile
3
Makefile
|
@ -13,6 +13,9 @@ system ?= $(HOSTNAME)
|
||||||
$(if $(system),,$(error unbound variable: system))
|
$(if $(system),,$(error unbound variable: system))
|
||||||
|
|
||||||
nixos-config ?= $(stockholm)/$(LOGNAME)/1systems/$(system).nix
|
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]
|
# target = [target_user@]target_host[:target_port][/target_path]
|
||||||
ifdef target
|
ifdef target
|
||||||
|
|
Loading…
Reference in New Issue
Block a user