19 lines
363 B
Makefile
19 lines
363 B
Makefile
APP_NAME=portfoliojournal-og
|
|
BUILD_DIR=bin
|
|
PORT?=8090
|
|
|
|
.PHONY: build run clean install-service
|
|
|
|
build:
|
|
@mkdir -p $(BUILD_DIR)
|
|
GO111MODULE=on go build -o $(BUILD_DIR)/$(APP_NAME) .
|
|
|
|
run:
|
|
PORT=$(PORT) GO111MODULE=on go run .
|
|
|
|
clean:
|
|
@rm -rf $(BUILD_DIR)
|
|
|
|
install-service: build
|
|
@echo "Install the binary and OpenRC service using the instructions in README.md"
|