forked from tcgoetz/GarminDB
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefines.mk
More file actions
42 lines (27 loc) · 638 Bytes
/
defines.mk
File metadata and controls
42 lines (27 loc) · 638 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
33
34
35
36
37
38
39
40
41
42
-include $(PROJECT_BASE)/my-defines.mk
CONF_DIR=$(HOME)/.GarminDb
#
# Handle multiple Python installs. What python are we using?
#
PLATFORM=$(shell uname)
ifeq ($(PLATFORM), Linux)
SHELL = /usr/bin/bash
TIME ?= $(shell which time)
else ifeq ($(PLATFORM), Darwin) # MacOS
SHELL ?= /usr/bin/bash
TIME ?= time
else
TIME ?= $(shell which time)
endif
PYTHON ?= python3
# what python should the venv be based on?
SYS_PYTHON_PATH ?= $(shell which python3)
PIP ?= pip3
ifeq ($(PYTHON),)
$(error Python not found)
endif
ifeq ($(PIP),)
$(error pip not found)
endif
MODULE=garmindb
export MODULE SHELL TIME PLATFORM PYTHON PIP FLAKE8