From 55e149ddd6611904f2c59ba6f8976a6de47858fc Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Thu, 30 Dec 2021 18:52:19 +0100 Subject: [PATCH] Makefile: output data from "go env" to build/.buildinfo --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9650ee8..f3bc748 100644 --- a/Makefile +++ b/Makefile @@ -12,11 +12,14 @@ DEPENDANCIES= github.com/firstrow/tcp_server \ github.com/pborman/getopt/v2 all: build -build: build/$(PROGRAM_NAME) +build: build/$(PROGRAM_NAME) build/.buildinfo build/$(PROGRAM_NAME) : $(SOURCES) $(GO) build -o $@ $(GOCCFLAGS) $(GOLDFLAGS) $^ +build/.buildinfo: + $(GO) env > $@ + deps: $(GO) get $(DEPENDANCIES)