diff --git a/code/golang/Makefile b/code/golang/Makefile new file mode 100644 index 0000000..fc51e8c --- /dev/null +++ b/code/golang/Makefile @@ -0,0 +1,21 @@ +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# LOCAL ARGUMENTS +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +PATH_TO_ARTEFACT:=../../dist/ads +PATH_TO_CONFIG:=../config.yml +COLOUR:=false + +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# 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 diff --git a/code/python/Makefile b/code/python/Makefile new file mode 100644 index 0000000..4a63cd3 --- /dev/null +++ b/code/python/Makefile @@ -0,0 +1,23 @@ +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# LOCAL ARGUMENTS +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +PATH_TO_CONFIG:=../config.yml +COLOUR:=false +ifeq ($(OS),Windows_NT) + PYTHON:="py -3" +else + PYTHON:="python3" +endif + +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# TARGETS +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +setup: + ${PYTHON} -m pip install -r requirements; +run: # non-interactive mode mit config-datei + ${PYTHON} src/main.py run --debug --colour COLOUR --config "${PATH_TO_CONFIG}" +run-it: # interactive mode + ${PYTHON} src/main.py run --it --debug --colour COLOUR +# Do everything: +all: setup run +all-it: setup run-it