Makefile: enable "make install"
This commit is contained in:
parent
d954dd5e19
commit
1497ee7182
21
Makefile
21
Makefile
@ -28,14 +28,13 @@ deploy:
|
|||||||
eval eval.:;@$(call evaluate)
|
eval eval.:;@$(call evaluate)
|
||||||
eval.%:;@$(call evaluate,-A $*)
|
eval.%:;@$(call evaluate,-A $*)
|
||||||
|
|
||||||
## usage: make install system=foo target=
|
# usage: make install system=foo [target_host=bar]
|
||||||
#.PHONY: install
|
install: ssh = ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
|
||||||
#install: ssh = ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
|
install:
|
||||||
#install:;@set -x
|
$(ssh) $(target_user)@$(target_host) \
|
||||||
# $(ssh) "$$target_user@$$target_host" \
|
env target_path=$(target_path) \
|
||||||
# env target_path="$target_path" \
|
sh -s prepare < krebs/4lib/infest/prepare.sh
|
||||||
# sh -s prepare < krebs/4lib/infest/prepare.sh
|
target_path=/mnt$(target_path) $(call execute,populate)
|
||||||
# make -s populate target_path=/mnt"$$target_path"
|
$(ssh) $(target_user)@$(target_host) \
|
||||||
# $(ssh) "$$target_user@$$target_host" \
|
env NIXOS_CONFIG=$(target_path)/nixos-config \
|
||||||
# env NIXOS_CONFIG=/var/src/nixos-config \
|
nixos-install
|
||||||
# nixos-install
|
|
||||||
|
Loading…
Reference in New Issue
Block a user