1APP_BIN = soft2VERSION = 0.11.2-noui3GOFLAGS := -buildmode=pie -modcacherw -trimpath -buildvcs=false4GO_TAGS :=56ifeq "$(shell pkg-config sqlite3; echo $$?)" "0"7 GO_TAGS += libsqlite38endif9space := $(subst ,, )10comma=,11GOFLAGS += -tags=$(subst $(space),$(comma),$(strip $(GO_TAGS)))12BUILD_LDFLAGS="-X main.Version=$(VERSION)"1314.PHONY: build15build:16 go build $(GOFLAGS) -ldflags $(BUILD_LDFLAGS) -o $(APP_BIN) ./cmd/soft1718check:19 go test -v ./...20.PHONY: clean21clean:22 go clean23 rm -f $(APP_BIN)24 rm -rf ./tmp/25