suwako/Makefile
yakumo.izuru f8d0324c54 SimplyTranslate broke the API again, also add another flavor
Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>

git-svn-id: file:///srv/svn/repo/suwako/trunk@18 0b558ee1-521d-8b46-a41b-40029c97c055
2023-09-23 20:41:57 +00:00

28 lines
850 B
Makefile

PREFIX ?= /usr/local
GOARCH ?= amd64
GOFLAGS ?= -v -ldflags "-w -X `go list`.Version=${VERSION} -X `go list`.Commit=${COMMIT} -X `go list`.Build=${BUILD}" -tags "static_build"
GOOS ?= linux
BRANCH = `git rev-parse --abbrev-ref HEAD`
BUILD = `git show -s --pretty=format:%cI`
COMMIT = `git rev-parse --short HEAD || echo "$COMMIT"`
VERSION = `git describe --abbrev=0 --tags 2>/dev/null || echo "$VERSION"`
all: suwako suwako-mozhi
suwako:
go build ${GOFLAGS} ./cmd/suwako
suwako-mozhi:
go build ${GOFLAGS} ./cmd/suwako-mozhi
clean:
rm -f suwako suwako-mozhi
install:
install -Dm0755 suwako ${PREFIX}/bin/suwako
install -Dm0755 suwako-mozhi ${PREFIX}/bin/suwako-mozhi
install -Dm0644 suwako.1 ${PREFIX}/share/man/man1/suwako.1
uninstall:
rm -f ${PREFIX}/bin/suwako
rm -f ${PREFIX}/bin/suwako-mozhi
rm -f ${PREFIX}/share/man/man1/suwako.1