Skip to content

Commit

Permalink
Merge pull request #70 from Wenzel/clean
Browse files Browse the repository at this point in the history
makefile: add clean rule to cleanup venv
  • Loading branch information
Wenzel authored Jun 13, 2022
2 parents de7b086 + 3f0c4a7 commit 261a3e3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Makefile recipies for managing kAFL workspace

# declare all targets in this variable
ALL_TARGETS:=deploy
ALL_TARGETS:=deploy clean
# declare all target as PHONY
.PHONY: $(ALL_TARGETS)

Expand All @@ -23,3 +23,6 @@ all: deploy

deploy:
make -C deploy $@ -- $(EXTRA_ARGS)

clean:
make -C deploy $@
5 changes: 4 additions & 1 deletion deploy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# declare all targets in this variable
ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
ALL_TARGETS:=deploy
ALL_TARGETS:=deploy clean
LOCALHOST_INVENTORY:=$(shell grep 'localhost ansible_connection=local' $(ROOT_DIR)/inventory > /dev/null 2>&1; echo $$?)
# declare all target as PHONY
.PHONY: $(ALL_TARGETS)
Expand Down Expand Up @@ -37,3 +37,6 @@ venv:
python3 -m venv venv
venv/bin/pip install wheel
venv/bin/pip install -r requirements.txt

clean:
rm -rf "$(ROOT_DIR)/venv"

0 comments on commit 261a3e3

Please sign in to comment.