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

Makefile: add "nocache" target

Allow to easily force a rebuild of all packages for LXD from scratch.
This is e.g. useful when the go compiler does not pickup a change in
e.g. a cgo header file.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner
2019-10-21 20:58:55 +02:00
parent 54ceb86d53
commit dd9ccce104

View File

@@ -126,6 +126,17 @@ endif
CC=$(CC) go install -v -tags "$(TAG_SQLITE3) logdebug" $(DEBUG) ./...
@echo "LXD built successfully"
.PHONY: nocache
nocache:
ifeq ($(TAG_SQLITE3),)
@echo "Missing custom libsqlite3, run \"make deps\" to setup."
exit 1
endif
go get -t -v -d ./...
CC=$(CC) go install -a -v -tags "$(TAG_SQLITE3)" $(DEBUG) ./...
@echo "LXD built successfully"
.PHONY: check
check: default
go get -v -x github.com/rogpeppe/godeps