-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (21 loc) · 749 Bytes
/
Makefile
File metadata and controls
33 lines (21 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
.DEFAULT_GOAL := go
SHELL := /usr/bin/env bash
# BUILD_DATE := $(shell date -u +%Y-%m-%d-%H%M)
EXECUTABLES = virtualenv python3 pip
thepackages := $(foreach exec,$(EXECUTABLES),\
$(if $(shell which $(exec)),some string,$(error "Mate, I cannot find " $(exec) " in PATH, either intstall $(exec) or update your paths")))
export
# directory where python3 venv will live
directory = ./venv
# create venv if venv not present
python_bootstrap: | $(directory)
@echo "Installing venv and python packages"
source ./venv/bin/activate; \
pip install -r pip-requirements.txt
$(directory):
@echo "Folder $(directory) does not exist"
virtualenv -p python3 $@
run:
source ./venv/bin/activate; \
python top-ami.py
go: python_bootstrap run