Skip to content

Commit

Permalink
Add new target to Makefile, which removes the __pycache__ directories
Browse files Browse the repository at this point in the history
  • Loading branch information
f9n committed Dec 21, 2018
1 parent b6f49d9 commit 2768b91
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,16 @@ install-ui:
popd;
@echo 'Installed dependecies for UI'

clean-ui-node-modules:
remove-ui-node-modules:
pushd ${ui_path}; \
rm -rf node_modules; \
popd;

remove-python-cache-files:
find . -type d -name '__pycache__' -exec rm -r {} +

clean: clean-ui-node-modules
@echo 'Cleaning...'
rm -f *.db *.log
rm -f */*.db */*.log
@echo 'Cleaned'
remove-project-cache-files:
find . -type f -name '*.log' -exec rm {} +
find . -type f -name '*.db' -exec rm {} +

clean: remove-ui-node-modules remove-python-cache-files remove-project-cache-files

0 comments on commit 2768b91

Please sign in to comment.