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
48 lines (30 loc) · 665 Bytes
/
Copy pathdefines.mk
File metadata and controls
48 lines (30 loc) · 665 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
43
44
45
46
47
48
-include 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
# PYTHON3=$(shell which python3)
PYTHON3=python3
# PIP3=$(shell which pip3)
PIP3=pip3
PYTHON ?= $(PYTHON3)
PIP ?= $(PIP3)
ifeq ($(PYTHON),)
$(error Python not found)
endif
ifeq ($(PIP),)
$(error pip not found)
endif
PIP_PATH = $(shell which ${PIP})
MODULE=garmindb
export MODULE SHELL TIME PLATFORM PYTHON PIP FLAKE8