Makefile: update to support new package structure

This commit is contained in:
HAYAMA_Kaoru
2025-05-03 12:56:42 +09:00
parent 1540549e72
commit 56faa6dd54
+3 -3
View File
@@ -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