diff options
author | tv <tv@krebsco.de> | 2016-02-12 19:56:04 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-02-12 19:56:04 +0100 |
commit | c52f93fefbca524dd21eea2b65fc3e504b080e19 (patch) | |
tree | bb594a4f8a373b2c807de95ab0d2d8a8a1818d24 | |
parent | 7a194d35581cb75f27503e1a312fe1db9bbdc72d (diff) |
Makefile: enable "make install"
-rw-r--r-- | Makefile | 21 |
1 files changed, 10 insertions, 11 deletions
@@ -28,14 +28,13 @@ deploy: eval eval.:;@$(call evaluate) eval.%:;@$(call evaluate,-A $*) -## usage: make install system=foo target= -#.PHONY: install -#install: ssh = ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -#install:;@set -x -# $(ssh) "$$target_user@$$target_host" \ -# env target_path="$target_path" \ -# sh -s prepare < krebs/4lib/infest/prepare.sh -# make -s populate target_path=/mnt"$$target_path" -# $(ssh) "$$target_user@$$target_host" \ -# env NIXOS_CONFIG=/var/src/nixos-config \ -# nixos-install +# usage: make install system=foo [target_host=bar] +install: ssh = ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null +install: + $(ssh) $(target_user)@$(target_host) \ + env target_path=$(target_path) \ + sh -s prepare < krebs/4lib/infest/prepare.sh + target_path=/mnt$(target_path) $(call execute,populate) + $(ssh) $(target_user)@$(target_host) \ + env NIXOS_CONFIG=$(target_path)/nixos-config \ + nixos-install |