From 576301ca209f59ed621a20c9dbc8b4e55d7a76a3 Mon Sep 17 00:00:00 2001 From: Hemna Date: Wed, 7 Dec 2022 14:19:42 -0500 Subject: [PATCH] Update Makefile for dev vs. run environments This patch updates the Makefile to allow for creating development vs runtime python virtual environments. If you only want to run aprsd commands make run If you want to work on aprsd code make dev --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8d39aae..def4df1 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -REQUIREMENTS_TXT ?= requirements.txt dev-requirements.txt +; REQUIREMENTS_TXT ?= requirements.txt dev-requirements.txt WORKDIR?=. VENVDIR ?= $(WORKDIR)/.aprsd-venv @@ -18,7 +18,10 @@ Makefile.venv: help: # Help for the Makefile @egrep -h '\s##\s' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' -dev: venv ## Create the virtualenv with all the requirements installed +dev: REQUIREMENTS_TXT = requirements.txt dev-requirements.txt +dev: venv ## Create a python virtual environment for development of aprsd + +run: venv ## Create a virtual environment for running aprsd commands docs: build cp README.rst docs/readme.rst