diff --git a/Makefile b/Makefile index 07c6b0c..6ab73fb 100644 --- a/Makefile +++ b/Makefile @@ -24,25 +24,25 @@ lint: build: @if [ -z "$(M)" ]; then echo 'no machine specified using M=' 2>&1; exit 1; fi - $(MORPH) build --on "$(M)" ./default.nix + $(call nix-run,morph,build --on "$(M)" ./default.nix) build-all: $(MAKE) build M="{name,srht,trek}" deploy: @if [ -z "$(M)" ]; then echo 'no machine specified using M=' 2>&1; exit 1; fi - $(MORPH) deploy --passwd --on "$(M)" ./default.nix switch + $(call nix-run,morph,deploy --passwd --on "$(M)" ./default.nix switch) deploy-full: @if [ -z "$(M)" ]; then echo 'no machine specified using M=' 2>&1; exit 1; fi - $(MORPH) deploy --passwd --upload-secrets --on "$(M)" ./default.nix switch + $(call nix-run,morph,deploy --passwd --upload-secrets --on "$(M)" ./default.nix switch) upload-secrets: @if [ -z "$(M)" ]; then echo 'no machine specified using M=' 2>&1; exit 1; fi - $(MORPH) upload-secrets --passwd --on "$(M)" ./default.nix + $(call nix-run,morph,upload-secrets --passwd --on "$(M)" ./default.nix) upload-secrets-all: - $(MORPH) upload-secrets --passwd ./default.nix + $(call nix-run,morph,upload-secrets --passwd ./default.nix) setup-git-hooks: echo -e '#!/usr/bin/env sh\nexec make lint' >.git/hooks/pre-commit