From 7ed5ffa3111795111a6a9dd21ec930da4a99c995 Mon Sep 17 00:00:00 2001 From: Paulo Truta Date: Sat, 11 Mar 2023 13:25:25 +0100 Subject: [PATCH] Makefile has intall-prod and install-cloud commands --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 77cf91d..f8be198 100644 --- a/Makefile +++ b/Makefile @@ -34,9 +34,16 @@ test: test-with-coverage: go test -tags=unit -timeout=600s -v ./... -coverprofile=coverage.out -install: build-cloud +install-cloud: build-cloud cp ./bin/edgeboxctl /usr/local/bin/edgeboxctl cp ./edgeboxctl/edgeboxctl.service /lib/systemd/system/edgeboxctl.service systemctl daemon-reload @echo "Edgeboxctl installed successfully" @echo "To start edgeboxctl run: systemctl start edgeboxctl" + +install-prod: build-prod + cp ./bin/edgeboxctl /usr/local/bin/edgeboxctl + cp ./edgeboxctl/edgeboxctl.service /lib/systemd/system/edgeboxctl.service + systemctl daemon-reload + @echo "Edgeboxctl installed successfully" + @echo "To start edgeboxctl run: systemctl start edgeboxctl" \ No newline at end of file