blob: 77145de4ef2817750a63354b8dcad5dd7a69bad9 [file] [log] [blame]
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/Masterminds/go-vcs vendor/github.com/Masterminds/go-vcs
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
.PHONY: build test install clean