2016-09-17 13:50:35 +00:00
|
|
|
.PHONY: all clean conmon ocid ocic update-deps
|
2016-07-15 17:52:13 +00:00
|
|
|
|
2016-09-17 09:37:45 +00:00
|
|
|
all: conmon ocid ocic
|
|
|
|
|
|
|
|
conmon:
|
|
|
|
make -C $@
|
2016-07-15 17:52:13 +00:00
|
|
|
|
|
|
|
ocid:
|
|
|
|
go build -o ocid ./cmd/server/main.go
|
|
|
|
|
|
|
|
ocic:
|
|
|
|
go build -o ocic ./cmd/client/main.go
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f ocic ocid
|
2016-09-17 13:50:35 +00:00
|
|
|
|
|
|
|
update-deps:
|
|
|
|
@which glide > /dev/null 2>/dev/null || (echo "ERROR: glide not found." && false)
|
|
|
|
glide update --strip-vcs --strip-vendor --update-vendored --delete
|
|
|
|
glide-vc --only-code --no-tests
|
|
|
|
# see http://sed.sourceforge.net/sed1line.txt
|
|
|
|
find vendor -type f -exec sed -i -e :a -e '/^\n*$$/{$$d;N;ba' -e '}' "{}" \;
|