Add copy command to Makefile
copy runs build, copy to Legion, then rm result link
This commit is contained in:
parent
27bbe15db5
commit
f0cb848271
6
Makefile
6
Makefile
|
@ -1,4 +1,4 @@
|
||||||
.PHONY: default build switch
|
.PHONY: default build switch copy
|
||||||
|
|
||||||
default: build
|
default: build
|
||||||
|
|
||||||
|
@ -7,3 +7,7 @@ build:
|
||||||
|
|
||||||
switch:
|
switch:
|
||||||
nix run . -- switch --flake . --show-trace
|
nix run . -- switch --flake . --show-trace
|
||||||
|
|
||||||
|
copy: build
|
||||||
|
nix copy --to ssh://legion ./result
|
||||||
|
rm ./result
|
||||||
|
|
Reference in a new issue