====== venv ====== ===== Makefile wrap ===== VENV_DIR ?= $(PWD)/.venv WEST ?= $(VENV_DIR)/bin/west $(VENV_DIR): zephyr/scripts/requirements.txt ; python3 -m venv $(VENV_DIR) $(VENV_DIR)/bin/pip install --upgrade west $(VENV_DIR)/bin/pip install -r zephyr/scripts/requirements.txt touch $(VENV_DIR) init: $(VENV_DIR) [ -d ".west" ] || $(WEST) init -l app $(WEST) update $(WEST) patch --apply menuconfig: build $(WEST) build -d $(BUILD_DIR) -t menuconfig Links: * [[https://venthur.de/2021-03-31-python-makefiles.html|Writing Makefiles for Python Projects]] * [[https://github.com/sio/Makefile.venv|Seamlessly manage Python virtual environment with a Makefile]] * [[https://pypi.org/project/Makefile.venv/]]