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)