27 lines
387 B
Makefile
27 lines
387 B
Makefile
# Makefile for PassPractice
|
|
|
|
# Go parameters
|
|
GOCMD=go
|
|
GOBUILD=$(GOCMD) build
|
|
GOCLEAN=$(GOCMD) clean
|
|
GOTEST=$(GOCMD) test
|
|
GOGET=$(GOCMD) get
|
|
BINARY_NAME=PassPractice
|
|
BINARY_DIR=./build
|
|
|
|
all: run
|
|
|
|
build:
|
|
mkdir -p $(BINARY_DIR)
|
|
$(GOBUILD) -o $(BINARY_DIR)/$(BINARY_NAME) -v
|
|
|
|
run: build
|
|
$(BINARY_DIR)/$(BINARY_NAME)
|
|
|
|
test:
|
|
$(GOTEST) -v ./...
|
|
|
|
clean:
|
|
$(GOCLEAN)
|
|
rm -rf $(BINARY_DIR)
|