1
0
mirror of https://github.com/lxc/incus.git synced 2026-02-05 09:46:19 +01:00

Makefile: Add "build" target

https://github.com/lxc/lxd/issues/8863

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
Stéphane Graber
2021-06-07 09:39:40 -04:00
parent 31d345ca41
commit 26291fcabe

View File

@@ -11,13 +11,19 @@ GOPATH ?= $(HOME)/go
export GO111MODULE=off
.PHONY: default
default:
default: get build
.PHONY: get
get:
go get -t -v -d ./...
.PHONY: build
build:
ifeq ($(TAG_SQLITE3),)
@echo "Missing dqlite, run \"make deps\" to setup."
exit 1
endif
go get -t -v -d ./...
CC=$(CC) go install -v -tags "$(TAG_SQLITE3)" $(DEBUG) ./...
CGO_ENABLED=0 go install -v -tags netgo ./lxd-p2c
CGO_ENABLED=0 go install -v -tags agent,netgo ./lxd-agent