Use vendored modules
Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja> git-svn-id: file:///srv/svn/repo/aya/trunk@67 cec141ff-132a-4243-88a5-ce187bd62f94
This commit is contained in:
20
Makefile
20
Makefile
@@ -1,17 +1,17 @@
|
||||
destdir ?=
|
||||
goflags ?= -v -ldflags "-w -X `go list`.Version=$(version) -X `go list`.Commit=$(commit)" -tags "static_build"
|
||||
prefix ?= /usr/local
|
||||
version ?= `git describe --abbrev=0 --tags || echo "$version"`
|
||||
commit ?= `git rev-parse --short HEAD || echo "$commit"`
|
||||
DESTDIR ?=
|
||||
GOFLAGS ?= -v -ldflags "-w -X `go list`.Version=$(VERSION) -X `go list`.Commit=$(COMMIT)" -tags "static_build" -mod=vendor
|
||||
PREFIX ?= /usr/local
|
||||
VERSION ?= `git describe --abbrev=0 --tags || echo "$VERSION"`
|
||||
COMMIT ?= `git rev-parse --short HEAD || echo "$COMMIT"`
|
||||
|
||||
|
||||
build:
|
||||
go build ${goflags} ./cmd/aya
|
||||
go build ${GOFLAGS} ./cmd/aya
|
||||
clean:
|
||||
rm -f aya
|
||||
install:
|
||||
install -Dm0755 aya ${destdir}${prefix}/bin/aya
|
||||
install -Dm0644 aya.1 ${destdir}${prefix}/share/man/man1/aya.1
|
||||
install -Dm0755 aya ${DESTDIR}${PREFIX}/bin/aya
|
||||
install -Dm0644 aya.1 ${DESTDIR}${PREFIX}/share/man/man1/aya.1
|
||||
uninstall:
|
||||
rm -f ${prefix}/bin/aya
|
||||
rm -f ${prefix}/share/man/man1/aya.1
|
||||
rm -f ${PREFIX}/bin/aya
|
||||
rm -f ${PREFIX}/share/man/man1/aya.1
|
||||
|
||||
Reference in New Issue
Block a user