From 56faa6dd5454de4f67bb5b33df230a12e00884e1 Mon Sep 17 00:00:00 2001 From: HAYAMA_Kaoru Date: Sat, 3 May 2025 12:05:37 +0900 Subject: [PATCH] Makefile: update to support new package structure --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 305dcd1..1c3a17c 100644 --- a/Makefile +++ b/Makefile @@ -16,14 +16,14 @@ EXE:=$(shell go env GOEXE) all: go fmt ./... - $(SET) "CGO_ENABLED=0" && go build $(GOOPT) + $(SET) "CGO_ENABLED=0" && go build -C "$(CURDIR)/cmd/lispect" -o "$(CURDIR)/$(NAME)$(EXE)" $(GOOPT) test: go test -v _dist: - $(SET) "CGO_ENABLED=0" && go build $(GOOPT) - zip -9 $(NAME)-$(VERSION)-$(GOOS)-$(GOARCH).zip $(NAME)$(EXE) + $(MAKE) all + zip -9j $(NAME)-$(VERSION)-$(GOOS)-$(GOARCH).zip $(NAME)$(EXE) dist: $(SET) "GOOS=linux" && $(SET) "GOARCH=386" && $(MAKE) _dist