personal-effectivity-applic.../Makefile

25 lines
376 B
Makefile

.PHONY: clean
clean:
if [[ -L "result" ]]; then rm result; fi
${MAKE} -C app clean
.PHONY: api
api:
nix build .#api
.PHONY: app
app:
nix build .#app
.PHONY: build
build: update
nix build .#nixosConfigurations.pea-test.config.system.build.toplevel
.PHONY: deploy
deploy: update
sudo nixos-container update pea-test --flake .
.PHONY: update
update:
nix flake update