mirror of
https://github.com/r-smith/deceptifeed.git
synced 2025-11-02 21:23:39 +00:00
Changed all commands that use long arguments to short arguments in the installation script and Makefile. This improves compatibility, as short arguments are more universally supported.
32 lines
668 B
Makefile
32 lines
668 B
Makefile
# 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
|
|
|
|
.PHONY: build
|
|
build:
|
|
@echo "Building to: ./out/"
|
|
@mkdir -p ./out/
|
|
GO111MODULE=$(GO111MODULE) CGO_ENABLED=$(CGO_ENABLED) $(GO) build -o $(TARGET_BINARY) $(SOURCE)
|
|
@echo "Build complete."
|
|
|
|
.PHONY: install
|
|
install: $(TARGET_BINARY)
|
|
@bash $(INSTALL_SCRIPT)
|
|
|
|
.PHONY: uninstall
|
|
uninstall:
|
|
@bash $(UNINSTALL_SCRIPT)
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
@echo "Cleaning started."
|
|
-@$(GO) clean
|
|
@rm --recursive --force ./out/
|
|
@echo "Cleaning complete."
|