From 0790b75e522b552664388d35b0ccbf1a5fa2dd94 Mon Sep 17 00:00:00 2001 From: Matthew Messinger Date: Sat, 18 May 2024 22:13:00 -0400 Subject: [PATCH] (chore) Update makefile with source files to trigger automatic rebuilds --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 8cf1877..2497dbc 100644 --- a/Makefile +++ b/Makefile @@ -28,6 +28,8 @@ endef export PACKAGE_DESCRIPTION +SOURCE_FILES = bashenv/* *.go go.mod go.sum + LIST = build release release-packagecloud validate targets = $(addsuffix -in-docker, $(LIST)) @@ -61,19 +63,19 @@ $(targets): %-in-docker: .env.docker --workdir /src/github.com/$(MAINTAINER)/$(REPOSITORY) \ $(IMAGE_NAME):build make -e $(@:-in-docker=) -build/darwin/$(NAME): +build/darwin/$(NAME): $(SOURCE_FILES) mkdir -p build/darwin CGO_ENABLED=0 GOOS=darwin go build -a -asmflags=-trimpath=/src -gcflags=-trimpath=/src \ -ldflags "-s -w -X main.Version=$(VERSION)" \ -o build/darwin/$(NAME) -build/linux/$(NAME)-amd64: +build/linux/$(NAME)-amd64: $(SOURCE_FILES) mkdir -p build/linux CGO_ENABLED=0 GOOS=linux go build -a -asmflags=-trimpath=/src -gcflags=-trimpath=/src \ -ldflags "-s -w -X main.Version=$(VERSION)" \ -o build/linux/$(NAME)-amd64 -build/linux/$(NAME)-arm64: +build/linux/$(NAME)-arm64: $(SOURCE_FILES) mkdir -p build/linux CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -a -asmflags=-trimpath=/src -gcflags=-trimpath=/src \ -ldflags "-s -w -X main.Version=$(VERSION)" \