Update Makefile
This commit is contained in:
4
Makefile
4
Makefile
@ -4,7 +4,7 @@
|
||||
BINARY_NAME=ipng-router-backup
|
||||
SOURCE_DIR=src
|
||||
BUILD_DIR=.
|
||||
GO_FILES=$(SOURCE_DIR)/main.go
|
||||
GO_FILES=$(SOURCE_DIR)/*.go
|
||||
|
||||
# Default target
|
||||
.PHONY: all
|
||||
@ -22,7 +22,7 @@ sync-version:
|
||||
.PHONY: build
|
||||
build: sync-version
|
||||
@echo "Building $(BINARY_NAME)..."
|
||||
cd $(SOURCE_DIR) && go build -o ../$(BUILD_DIR)/$(BINARY_NAME) main.go
|
||||
cd $(SOURCE_DIR) && go build -o ../$(BUILD_DIR)/$(BINARY_NAME) .
|
||||
@echo "Build complete: $(BINARY_NAME)"
|
||||
|
||||
# Clean build artifacts
|
||||
|
Reference in New Issue
Block a user