forked from cplab/odorsampling3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (24 loc) · 759 Bytes
/
Makefile
File metadata and controls
32 lines (24 loc) · 759 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
# SHELL = bash
# VENV := venv
# SYS_PYTHON := python3
# SYS_PY_LOC := $(shell which $(SYS_PYTHON))
# DETECTED_PY := $(shell basename -- $(SYS_PY_LOC))
# ifneq ($(SYS_PYTHON), $(DETECTED_PY))
# SYS_PYTHON:=$(shell echo $(SYS_PYTHON) | rev | cut -c 2- | rev)
# SYS_PY_LOC:=$(shell which $(SYS_PYTHON))
# DETECTED_PY:=$(shell basename -- $(SYS_PY_LOC))
# ifneq ($(SYS_PYTHON), $(DETECTED_PY))
# echo "Error detecting python version."
# endif
# endif
# VENV_GEN_CMD := $(DETECTED_PY) -m venv $(VENV)
# PYTHON := $(VENV)/bin/python3
# PIP := $(VENV)/bin/pip
clean:
rm *.pdf *.csv *.log
# test:
# @echo "Running test"
# @echo $(SYS_PYTHON) == $(DETECTED_PY)
# @echo $(VENV_GEN_CMD)
# @echo "Done w/ test"
# venv/bin/activate: requirements.txt