Compare commits
2 Commits
f0047a7a0c
...
db56530311
Author | SHA1 | Date |
---|---|---|
= | db56530311 | |
= | 319acbd0e1 |
7
Makefile
7
Makefile
|
@ -21,6 +21,10 @@ build-arm64:
|
||||||
build-armhf:
|
build-armhf:
|
||||||
GOOS=linux GOARCH=arm RELEASE=prod make build
|
GOOS=linux GOARCH=arm RELEASE=prod make build
|
||||||
|
|
||||||
|
build-amd64:
|
||||||
|
GOOS=linux GOARCH=amd64 RELEASE=prod make build
|
||||||
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
@echo "Building ${GOOS}-${GOARCH}"
|
@echo "Building ${GOOS}-${GOARCH}"
|
||||||
GOOS=${GOOS} GOARCH=${GOARCH} go build \
|
GOOS=${GOOS} GOARCH=${GOARCH} go build \
|
||||||
|
@ -41,7 +45,7 @@ test-with-coverage:
|
||||||
go test -tags=unit -timeout=600s -v ./... -coverprofile=coverage.out
|
go test -tags=unit -timeout=600s -v ./... -coverprofile=coverage.out
|
||||||
|
|
||||||
install:
|
install:
|
||||||
sudo systemctl stop edgeboxctl
|
sudo systemctl stop edgeboxctl || true
|
||||||
sudo rm -rf /usr/local/bin/edgeboxctl /usr/local/sbin/edgeboctl /lib/systemd/system/edgeboxctl.service
|
sudo rm -rf /usr/local/bin/edgeboxctl /usr/local/sbin/edgeboctl /lib/systemd/system/edgeboxctl.service
|
||||||
sudo cp ./bin/edgeboxctl /usr/local/bin/edgeboxctl
|
sudo cp ./bin/edgeboxctl /usr/local/bin/edgeboxctl
|
||||||
sudo cp ./bin/edgeboxctl /usr/local/sbin/edgeboxctl
|
sudo cp ./bin/edgeboxctl /usr/local/sbin/edgeboxctl
|
||||||
|
@ -54,6 +58,7 @@ install-prod: build-prod install
|
||||||
install-cloud: build-cloud install
|
install-cloud: build-cloud install
|
||||||
install-arm64: build-arm64 install
|
install-arm64: build-arm64 install
|
||||||
install-armhf: build-armhf install
|
install-armhf: build-armhf install
|
||||||
|
install-amd64: build-amd64 install
|
||||||
|
|
||||||
start:
|
start:
|
||||||
systemctl start edgeboxctl
|
systemctl start edgeboxctl
|
||||||
|
|
Loading…
Reference in New Issue