mirror of
https://github.com/aljazceru/gpt-engineer.git
synced 2026-02-10 15:45:58 +01:00
added a minimal makefile
This commit is contained in:
37
Makefile
Normal file
37
Makefile
Normal file
@@ -0,0 +1,37 @@
|
||||
SHELL := /bin/bash
|
||||
|
||||
.PHONY: help install dev-install
|
||||
|
||||
.DEFAULT_GOAL := help
|
||||
|
||||
.SILENT:
|
||||
|
||||
help:
|
||||
@echo "Please use 'make <target>' where <target> is one of the following:"
|
||||
@echo " help Return this message with usage instructions."
|
||||
@echo " install Will install the dependencies and create a virtual environment."
|
||||
@echo " dev-install Will install the dev dependencies too."
|
||||
|
||||
dev-install:create-venv install-dev-dependencies install-pre-commit
|
||||
|
||||
install: create-venv install-dependencies farewell
|
||||
|
||||
install-dependencies:
|
||||
@echo "Installing dependencies..." && \
|
||||
pip install . >> /dev/null
|
||||
|
||||
create-venv:
|
||||
@echo "Creating virtual environment..." && \
|
||||
python -m venv venv && \
|
||||
source venv/bin/activate && \
|
||||
pip install --upgrade pip
|
||||
|
||||
install-dev-dependencies:
|
||||
@echo "Installing dependencies..." && \
|
||||
source venv/bin/activate && \
|
||||
pip install -r requirements.txt
|
||||
|
||||
install-pre-commit:
|
||||
@echo "Installing pre-commit hooks..." && \
|
||||
source venv/bin/activate && \
|
||||
pre-commit install
|
||||
Reference in New Issue
Block a user