1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-api-healthcheck synced 2026-06-18 05:00:03 +02:00

Makefile: output data from "go env" to build/.buildinfo

This commit is contained in:
Henrik Hautakoski 2021-12-30 18:52:19 +01:00
parent a757c0dde5
commit 55e149ddd6

View file

@ -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)