Add copy command to Makefile

copy runs build, copy to Legion, then rm result link
This commit is contained in:
Evie Litherland-Smith 2024-06-03 05:46:16 +01:00
parent 27bbe15db5
commit f0cb848271

View file

@ -1,4 +1,4 @@
.PHONY: default build switch
.PHONY: default build switch copy
default: build
@ -7,3 +7,7 @@ build:
switch:
nix run . -- switch --flake . --show-trace
copy: build
nix copy --to ssh://legion ./result
rm ./result