2011-02-04 01:32:34 +00:00
|
|
|
all:
|
2013-02-02 18:59:39 +00:00
|
|
|
go install --ldflags="-X camlistore.org/pkg/buildinfo.GitInfo "`git log --pretty=format:'%ad-%h' --abbrev-commit --date=short -1` `pkg-config --libs sqlite3 1>/dev/null 2>/dev/null && echo "--tags=with_sqlite"` ./pkg/... ./server/... ./cmd/... ./third_party/...
|
2011-02-04 01:32:34 +00:00
|
|
|
|
2013-01-20 21:35:37 +00:00
|
|
|
# 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.
|
|
|
|
# See https://code.google.com/p/go/issues/detail?id=4443
|
|
|
|
forcefull:
|
|
|
|
go install -a --tags=with_sqlite ./pkg/... ./server/... ./cmd/... ./third_party/...
|
|
|
|
|
2011-03-05 21:44:19 +00:00
|
|
|
presubmit:
|
2013-01-28 16:35:53 +00:00
|
|
|
SKIP_DEP_TESTS=1 go test `pkg-config --libs sqlite3 1>/dev/null 2>/dev/null && echo "--tags=with_sqlite"` -short ./pkg/... ./server/camlistored ./cmd/... && echo PASS
|
2011-03-05 21:44:19 +00:00
|
|
|
|
2012-02-28 03:51:34 +00:00
|
|
|
embeds:
|
2013-01-13 05:25:55 +00:00
|
|
|
go install ./pkg/fileembed/genfileembed/ && genfileembed ./server/camlistored/ui && genfileembed ./pkg/server
|
2013-01-25 23:13:30 +00:00
|
|
|
|
|
|
|
checkjs:
|
|
|
|
perl -e 'require "misc/get_closure.pl"; get_closure_lib(); get_closure_compiler();'
|
|
|
|
if [ -f server/camlistored/newui/all.js ]; then rm server/camlistored/newui/all.js; fi
|
|
|
|
# This will generate non working code for now, since camli.js, SHA1.js, Crypto.js,
|
|
|
|
# and base64.js are not explicitely declared as dependencies.
|
|
|
|
tmp/closure-lib/closure/bin/build/closurebuilder.py\
|
|
|
|
--root tmp/closure-lib/ \
|
|
|
|
--root server/camlistored/ui/ \
|
|
|
|
--root server/camlistored/newui/ \
|
|
|
|
--namespace="camlistore.IndexPage" \
|
|
|
|
--output_mode=compiled \
|
|
|
|
--compiler_jar=tmp/closure-compiler/compiler.jar \
|
|
|
|
--compiler_flags="--compilation_level=ADVANCED_OPTIMIZATIONS" \
|
|
|
|
> server/camlistored/newui/all.js
|