Skip to content

Commit

Permalink
feat: update makefile scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
keivanipchihagh committed Apr 21, 2024
1 parent 036441d commit 6d8cae4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
20 changes: 16 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,27 @@
all: rebuild

rebuild:
@$(MAKE) clean
@$(MAKE) build
# Setup the virtual environment
setup:
python3 -m venv venv
source venv/bin/activate

# Install the dependencies from `requirements.txt`
install:
pip install --upgrade pip
pip install -r requirements.txt

# Build the protobuf files
build:
@echo "Building..."
bash scripts/build.sh
@echo "Building complete."

# Remove the generated files
clean:
@echo "Cleaning..."
bash scripts/clean.sh
@echo "Cleaning complete."
@echo "Cleaning complete."

rebuild:
@$(MAKE) clean
@$(MAKE) build
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@ git clone https://github.com/dejavu-project/api-scheme.git
2. Create and activate a Virtual Environment:
```bash
cd api-scheme
python3 -m venv venv
source env/bin/activate
make setup
```
3. Install dependencies:
3. Install the dependencies:
```bash
pip install -r requirements.txt
make install
```
4. Build the project:
```bash
Expand Down
File renamed without changes.

0 comments on commit 6d8cae4

Please sign in to comment.