Skip to content

Commit

Permalink
Added the Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ab6459 committed Aug 2, 2022
1 parent 65af5cb commit 728bb61
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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:

0 comments on commit 728bb61

Please sign in to comment.