Added make install command (copies binary to local bin and adds service file
parent
aca8f4e5f0
commit
90e4cd2da7
7
Makefile
7
Makefile
|
@ -33,3 +33,10 @@ test:
|
||||||
|
|
||||||
test-with-coverage:
|
test-with-coverage:
|
||||||
go test -tags=unit -timeout=600s -v ./... -coverprofile=coverage.out
|
go test -tags=unit -timeout=600s -v ./... -coverprofile=coverage.out
|
||||||
|
|
||||||
|
install: 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"
|
||||||
|
|
Loading…
Reference in New Issue