mirror of
https://github.com/r-smith/deceptifeed.git
synced 2025-10-23 00:12:22 +00:00
Change output directory to ./bin when compiling
Previously, binaries were compiled to ./out.
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -27,4 +27,4 @@ deceptifeed.*
|
||||
deceptifeed-*.*
|
||||
|
||||
# Ignore build output directory used by Makefile.
|
||||
out/
|
||||
bin/
|
20
Makefile
20
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."
|
||||
|
Reference in New Issue
Block a user