diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f9f08d3 --- /dev/null +++ b/Makefile @@ -0,0 +1,29 @@ +INVENV = $(shell pip3 -V | grep 'portscanner_venv') +current_dir = $(shell pwd) + +prereqs: venvcheck FORCE + pip install -r requirements.txt + +venv: FORCE + python3 -m venv portscanner_venv + +docs: + pdoc --html ./src/*.py --force + +venvcheck: +ifeq ($(INVENV),) + $(error You should only run this from within the venv. Use '. ./portscanner_venv/bin/activate') +else + @echo "venv check passed\n" +endif + + +start_target: + -docker kill harbourmaster_target + -docker rm harbourmaster_target + docker run -t --name harbourmaster_target csx239/harbourmaster_target:latest + + + + +FORCE: \ No newline at end of file