Skip to content

Commit 29c3cc0

Browse files
committed
Add a makefile with some automations
1 parent 3e1adef commit 29c3cc0

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

Makefile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
SHELL:=/bin/bash
2+
3+
.PHONY: help clean venv build install run
4+
5+
help:
6+
@echo "---------------HELP-----------------"
7+
@echo "To install the project type make install"
8+
@echo "To run the project type make run"
9+
@echo "To clean the project type make clean"
10+
@echo "To make a venv type make venv"
11+
@echo "To activate the venv type source venv/bin/activate"
12+
@echo "------------------------------------"
13+
14+
clean:
15+
@find ./ -name '__pycache__' | xargs rm -rf;
16+
@rm -rf build dist *.egg-info;
17+
18+
install: venv;
19+
python setup.py install;
20+
21+
venv:
22+
@python3 -m venv venv;
23+
@source venv/bin/activate;
24+
25+
run: venv;
26+
python -m pip_search bs4;

0 commit comments

Comments
 (0)