From 728bb6176137181c3f089c0920dfa09faea273d9 Mon Sep 17 00:00:00 2001 From: Ian Cornelius Date: Tue, 2 Aug 2022 12:26:39 +0100 Subject: [PATCH] Added the Makefile --- Makefile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Makefile 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