From 5dc1a6d91cb7f7b5eb0b25475a643af2c53c285d Mon Sep 17 00:00:00 2001 From: Ryan Smith Date: Mon, 17 Mar 2025 15:54:14 -0700 Subject: [PATCH] Change output directory to ./bin when compiling Previously, binaries were compiled to ./out. --- .gitignore | 2 +- Makefile | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 84d4f44..3f279fd 100644 --- a/.gitignore +++ b/.gitignore @@ -27,4 +27,4 @@ deceptifeed.* deceptifeed-*.* # Ignore build output directory used by Makefile. -out/ \ No newline at end of file +bin/ \ No newline at end of file diff --git a/Makefile b/Makefile index b8a96e0..a6b670e 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,17 @@ # Makefile for Deceptifeed -TARGET_BINARY := ./out/deceptifeed -SOURCE := ./cmd/deceptifeed/ -INSTALL_SCRIPT := ./scripts/install.sh -UNINSTALL_SCRIPT := ./scripts/install.sh --uninstall -GO := go -CGO_ENABLED := 0 -GO111MODULE := on +TARGET_BINARY := ./bin/deceptifeed +SOURCE = ./cmd/deceptifeed/ +INSTALL_SCRIPT = ./scripts/install.sh +UNINSTALL_SCRIPT = ./scripts/install.sh --uninstall +GO = go +CGO_ENABLED = 0 +GO111MODULE = on .PHONY: build build: - @echo "Building to: ./out/" - @mkdir -p ./out/ + @echo "Building to: ./bin/" + @mkdir -p ./bin/ GO111MODULE=$(GO111MODULE) CGO_ENABLED=$(CGO_ENABLED) $(GO) build -o $(TARGET_BINARY) $(SOURCE) @echo "Build complete." @@ -27,5 +27,5 @@ uninstall: clean: @echo "Cleaning started." -@$(GO) clean - @rm --recursive --force ./out/ + @rm --recursive --force ./bin/ @echo "Cleaning complete."