mirror of
https://github.com/craigerl/aprsd.git
synced 2024-12-24 19:00:44 -05:00
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:
parent
6d34d9c514
commit
576301ca20
7
Makefile
7
Makefile
@ -1,4 +1,4 @@
|
|||||||
REQUIREMENTS_TXT ?= requirements.txt dev-requirements.txt
|
; REQUIREMENTS_TXT ?= requirements.txt dev-requirements.txt
|
||||||
WORKDIR?=.
|
WORKDIR?=.
|
||||||
VENVDIR ?= $(WORKDIR)/.aprsd-venv
|
VENVDIR ?= $(WORKDIR)/.aprsd-venv
|
||||||
|
|
||||||
@ -18,7 +18,10 @@ Makefile.venv:
|
|||||||
help: # Help for the Makefile
|
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}'
|
@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
|
docs: build
|
||||||
cp README.rst docs/readme.rst
|
cp README.rst docs/readme.rst
|
||||||
|
Loading…
Reference in New Issue
Block a user