typo and makefile error
This commit is contained in:
parent
7ea4d12172
commit
b9d639ebb9
1 changed files with 5 additions and 4 deletions
|
@ -147,7 +147,7 @@ run: mandatory-host-param ## make run host=<hostname>
|
||||||
|
|
||||||
.PHONY: update
|
.PHONY: update
|
||||||
update: ## make update
|
update: ## make update
|
||||||
nixos-channel --update
|
nix-channel --update
|
||||||
|
|
||||||
##### UTILS ####################################################################
|
##### UTILS ####################################################################
|
||||||
.PHONY: help
|
.PHONY: help
|
||||||
|
@ -157,10 +157,11 @@ help:
|
||||||
.PHONY: mandatory-host-param
|
.PHONY: mandatory-host-param
|
||||||
mandatory-host-param:
|
mandatory-host-param:
|
||||||
ifndef host
|
ifndef host
|
||||||
$(error host is not set)
|
@echo "Error: host parameter is not set"; exit 1
|
||||||
endif
|
else
|
||||||
ifeq ($(wildcard hosts/$(host)), )
|
ifeq ($(wildcard hosts/$(host)), )
|
||||||
$(error host has no configuration in hosts/$(host))
|
@echo "Error: host has no configuration in ./hosts/$(host)"; exit 1
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue