22 lines
766 B
Makefile
22 lines
766 B
Makefile
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
# LOCAL ARGUMENTS
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
PATH_TO_ARTEFACT:=../../dist/ads
|
|
PATH_TO_CONFIG:=../config.yml
|
|
COLOUR:=true# <- auf false stellen, falls es Probleme gibt
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
# TARGETS
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
setup:
|
|
go mod download
|
|
build:
|
|
go build -o ${PATH_TO_ARTEFACT} main.go
|
|
run: # non-interactive mode mit config-datei
|
|
${PATH_TO_ARTEFACT} run --debug --colour ${COLOUR} --config "${PATH_TO_CONFIG}"
|
|
run-it: # interactive mode
|
|
${PATH_TO_ARTEFACT} run --it --debug --colour ${COLOUR}
|
|
# Do everything:
|
|
all: setup build run
|
|
all-it: setup build run-it
|