27 lines
		
	
	
		
			826 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			826 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 | |
| # LOCAL ARGUMENTS
 | |
| # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 | |
| PATH_TO_CONFIG:=../config.yml
 | |
| COLOUR:=true# <- auf false stellen, falls es Probleme gibt
 | |
| 
 | |
| ifeq ($(OS),Windows_NT)
 | |
| 	PYTHON:=py -3
 | |
| 	PIP:=py -3 -m pip
 | |
| else
 | |
| 	PYTHON:=python3
 | |
| 	PIP:=python3 -m pip
 | |
| endif
 | |
| 
 | |
| # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 | |
| # TARGETS
 | |
| # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 | |
| setup: # TODO: Variant mit venv
 | |
| 	${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
 |