Makefile: make 'go run make.go' the default

Change-Id: Ifbac6719e3585bd7ddad7a2306ca4174fd28789a
This commit is contained in:
Brad Fitzpatrick 2013-06-21 23:07:14 -07:00
parent 7d8a8634a0
commit 3ebcb011e4
1 changed files with 8 additions and 13 deletions

View File

@ -1,19 +1,14 @@
# On OS X with "brew install sqlite3", you need PKG_CONFIG_PATH=/usr/local/Cellar/sqlite/3.7.17/lib/pkgconfig/
# TODO(bradfitz): rename "all" to "raw" and "newall" to "all", once
# make.go is finished. Then this text will remain and be accurate:
#
# The "raw" target is the old "all" way, using the "go" command
# directly. Assumes that the camlistore root is in
# $GOPATH/src/camlistore.org.
#
# The new "all" way (above) doesn't care where the directory is
# checked out, or whether you even have a GOPATH at all.
# The normal way to build Camlistore is just "go run make.go", which
# works everywhere, even on systems without Make. The rest of this
# Makefile is mostly historical and should hopefully disappear over
# time.
all:
go run make.go
# On OS X with "brew install sqlite3", you need PKG_CONFIG_PATH=/usr/local/Cellar/sqlite/3.7.17/lib/pkgconfig/
full:
go install --ldflags="-X camlistore.org/pkg/buildinfo.GitInfo "`./misc/gitversion` `pkg-config --libs sqlite3 1>/dev/null 2>/dev/null && echo "--tags=with_sqlite"` ./pkg/... ./server/... ./cmd/... ./third_party/...
newall:
go run make.go
# 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.