From 9efa2cbe8c20ed9c913e3daf24b9822e332201d5 Mon Sep 17 00:00:00 2001 From: Zorchenhimer Date: Sun, 14 Feb 2021 18:25:42 -0500 Subject: [PATCH] Fix makefile --- Makefile | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index f366a5b..9147f70 100644 --- a/Makefile +++ b/Makefile @@ -3,14 +3,11 @@ SOURCES=$(shell find . -not -path "./cmd/*" -type f -name "*.go") all: bin/server bin/generate -bin/server: cmd/server.go bin/ $(SOURCES) - go build -o bin/server $< +bin/server: cmd/server.go $(SOURCES) + go build -o $@ $< -bin/generate: cmd/generate.go bin/ $(SOURCES) - go build -o bin/server $< - -bin/: - mkdir -p bin +bin/generate: cmd/generate.go $(SOURCES) + go build -o $@ $< clean: rm -rf bin/