mirror of https://github.com/sgoudham/Tweeter.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
665 B
Makefile
24 lines
665 B
Makefile
VENV_NAME=stacks-venv
|
|
BUILD_DIR=build
|
|
STACK_NAME=Tweeter
|
|
|
|
all: clean-workspace json-template
|
|
|
|
clean-workspace:
|
|
rm -rf ${VENV_NAME}
|
|
rm -fr $(BUILD_DIR)
|
|
|
|
create-build-dir:
|
|
mkdir -p $(BUILD_DIR)
|
|
|
|
json-template: pycodestyle create-build-dir
|
|
. ${VENV_NAME}/Scripts/activate && python src/template.py > ${BUILD_DIR}/${STACK_NAME}.json
|
|
|
|
venv:
|
|
python -m venv ${VENV_NAME}
|
|
${VENV_NAME}/Scripts/pip install -r requirements.txt
|
|
. ${VENV_NAME}/Scripts/activate
|
|
echo "virtualenv prepared, please run 'source ${VENV_NAME}/bin/activate' if you wish to use it in your current shell"
|
|
|
|
pycodestyle: venv
|
|
. ${VENV_NAME}/Scripts/activate && pycodestyle --first src/template.py
|