blob: b30a4e2b1ca6a8aad3ce84e01822f4fc58a28d09 [file] [log] [blame] [edit]
VERSION := $(shell git describe --tags)
build:
go build -o glide -ldflags "-X main.version=${VERSION}" glide.go
install: build
install -d ${DESTDIR}/usr/local/bin/
install -m 755 ./glide ${DESTDIR}/usr/local/bin/glide
test:
go test ./...
clean:
rm -f ./glide.test
rm -f ./glide
bootstrap:
mkdir ./vendor
git clone https://github.com/Masterminds/cookoo vendor/github.com/Masterminds/cookoo
git clone https://github.com/kylelemons/go-gypsy vendor/github.com/kylelemons/go-gypsy
git clone https://github.com/codegangsta/cli vendor/github.com/codegangsta/cli
git clone https://go.googlesource.com/tools vendor/golang.org/x/tools
.PHONY: build test install clean