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:
11
Makefile
11
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user