| id ?= $(shell if test -e tmp/id; then cat tmp/id; else PATH=$(PATH) bin/cuid; fi) |
| go_files := $(shell find ./src -name "*.go") |
| st --port $(port) --host $(host) --dir public --no-cache --index index.html |
| jiri go build -a -o $@ v.io/x/ref/cmd/principal |
| jiri go build -a -o $@ v.io/x/ref/services/syncbase/syncbased |
| credentials: bin/principal |
| bin/principal seekblessings --v23.credentials ./credentials |
| syncbase: delete bin/syncbased credentials tmp |
| $(eval blessing := $(shell bin/principal dump --v23.credentials=./credentials -s=true)) |
| $(eval email := $(subst dev.v.io:u:,,$(blessing))) |
| --alsologtostderr=false \ |
| --name=users/$(email)/croupier/$(name) \ |
| --v23.credentials=credentials \ |
| --v23.permissions.literal='{"Admin":{"In":["..."]},"Write":{"In":["..."]},"Read":{"In":["..."]},"Resolve":{"In":["..."]},"Debug":{"In":["..."]}}' |
| # Switch mountpoints by replacing the --name flag in syncbase with the following line: |
| #--name=/192.168.86.254:8101/croupier/$(name) \ |