25 lines
297 B
Makefile
25 lines
297 B
Makefile
BINARY_NAME=aides-uploader
|
|
|
|
SRC_DIR=.
|
|
BUILD_DIR=./bin
|
|
|
|
GO=go
|
|
|
|
build:
|
|
mkdir -p $(BUILD_DIR)
|
|
$(GO) build -o $(BUILD_DIR)/$(BINARY_NAME) $(SRC_DIR)
|
|
|
|
run: build
|
|
$(BUILD_DIR)/$(BINARY_NAME)
|
|
|
|
test:
|
|
$(GO) test ./...
|
|
|
|
clean:
|
|
rm -rf $(BUILD_DIR)
|
|
|
|
deps:
|
|
$(GO) mod tidy
|
|
$(GO) mod download
|
|
|
|
all: build
|