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
This commit is contained in:
yakumo.izuru
2023-09-23 20:41:57 +00:00
parent 8071aee295
commit f8d0324c54
5 changed files with 80 additions and 21 deletions

View File

@@ -1,7 +1,7 @@
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"
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`
@@ -9,14 +9,19 @@ 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"`
build:
go build $(GOFLAGS) ./cmd/suwako
strip suwako
all: suwako suwako-mozhi
suwako:
go build ${GOFLAGS} ./cmd/suwako
suwako-mozhi:
go build ${GOFLAGS} ./cmd/suwako-mozhi
clean:
rm -f suwako
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