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
This commit is contained in:
Hemna 2022-12-07 14:19:42 -05:00
parent 6d34d9c514
commit 576301ca20
1 changed files with 5 additions and 2 deletions

View File

@ -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