From 46fd016d1087e1f076beae50a6705d8fe137229c Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Wed, 2 Mar 2022 15:22:51 +0100 Subject: [PATCH] Makefile: move build/.buildinfo target to build/$(PROGRAM_NAME) --- Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 236cc47..852746f 100644 --- a/Makefile +++ b/Makefile @@ -12,13 +12,11 @@ DEPENDANCIES= github.com/firstrow/tcp_server \ github.com/pborman/getopt/v2 all: build -build: build/$(PROGRAM_NAME) build/.buildinfo +build: build/$(PROGRAM_NAME) build/$(PROGRAM_NAME) : $(SOURCES) $(GO) build -o $@ $(GOCCFLAGS) $(GOLDFLAGS) $^ - -build/.buildinfo: - $(GO) env > $@ + $(GO) env > build/.buildinfo deps: $(GO) get $(DEPENDANCIES)