Makefile: detect sqlite automatically

Change-Id: Ib21ec16462ec2f0bc58456127534db5493c1ae67
This commit is contained in:
Brad Fitzpatrick 2013-01-25 14:52:48 -08:00
parent 56532638a4
commit de20351d65
1 changed files with 2 additions and 8 deletions

View File

@ -1,8 +1,5 @@
all:
go install ./pkg/... ./server/... ./cmd/... ./third_party/...
full:
go install --tags=with_sqlite ./pkg/... ./server/... ./cmd/... ./third_party/...
go install `pkg-config --libs sqlite3 1>/dev/null 2>/dev/null && echo -n "--tags=with_sqlite"` ./pkg/... ./server/... ./cmd/... ./third_party/...
# Workaround Go bug where the $GOPATH/pkg cache doesn't know about tag changes.
# Useful when you accidentally run "make" and then "make presubmit" doesn't work.
@ -10,11 +7,8 @@ full:
forcefull:
go install -a --tags=with_sqlite ./pkg/... ./server/... ./cmd/... ./third_party/...
presubmitlite:
SKIP_DEP_TESTS=1 go test -short ./pkg/... ./server/camlistored ./cmd/... && echo PASS
presubmit:
SKIP_DEP_TESTS=1 go test --tags=with_sqlite -short ./pkg/... ./server/camlistored ./cmd/... && echo PASS
SKIP_DEP_TESTS=1 go test `pkg-config --libs sqlite3 1>/dev/null 2>/dev/null && echo -n "--tags=with_sqlite"` -short ./pkg/... ./server/camlistored ./cmd/... && echo PASS
embeds:
go install ./pkg/fileembed/genfileembed/ && genfileembed ./server/camlistored/ui && genfileembed ./pkg/server