mirror of
https://github.com/thib8956/advent-of-code.git
synced 2025-08-23 16:01:59 +00:00
chore: create new project structure and aoc.py runner script
This commit is contained in:
26
Makefile
Normal file
26
Makefile
Normal file
@@ -0,0 +1,26 @@
|
||||
.PHONY: all venv install clean
|
||||
|
||||
# Define the virtual environment directory
|
||||
VENV_DIR = ./venv
|
||||
|
||||
# Define the Python interpreter to use
|
||||
PYTHON = $(VENV_DIR)/bin/python
|
||||
|
||||
# Default target
|
||||
all: venv install
|
||||
|
||||
# Create virtual environment if it doesn't exist
|
||||
venv:
|
||||
@echo "Creating virtual environment..."
|
||||
@if [ ! -d $(VENV_DIR) ]; then \
|
||||
python3 -m venv $(VENV_DIR); \
|
||||
fi
|
||||
|
||||
install: venv
|
||||
@$(PYTHON) -m pip install --upgrade pip
|
||||
@$(PYTHON) -m pip install -e .
|
||||
|
||||
clean:
|
||||
@echo "Removing virtual environment..."
|
||||
@rm -rf $(VENV_DIR)
|
||||
|
Reference in New Issue
Block a user