-
Notifications
You must be signed in to change notification settings - Fork 31
/
Makefile
64 lines (52 loc) · 2 KB
/
Makefile
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Copyright 2018 Eli Lilly and Company
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
########################################################################
.PHONY: default
.PHONY: all
# Determine the operating system
UNAME := $(shell uname)
ifeq ($(UNAME),Darwin)
BUILD_SCRIPT := build_macos.zsh
else
BUILD_SCRIPT := build_linux.sh
endif
# Determine REPO_HOME
REPO_HOME := $(CURDIR)
# A default target that will probably work in most cases.
# Note it does not build BerkeleyDB dependent tools or Python bindings.
default:
@echo "Build platform: $(UNAME)"
cd src && REPO_HOME=$(REPO_HOME) ./$(BUILD_SCRIPT)
all:
@echo "Build platform: $(UNAME)"
cd src && REPO_HOME=$(REPO_HOME) BUILD_BDB=1 BUILD_PYTHON=1 BUILD_XGBOOST=1 BUILD_VENDOR=1 ./$(BUILD_SCRIPT)
advance:
@echo "Build platform: $(UNAME)"
cd src && REPO_HOME=$(REPO_HOME) BUILD_BDB=1 BUILD_PYTHON=1 ./$(BUILD_SCRIPT)
vendor:
@echo "Build platform: $(UNAME)"
cd src && REPO_HOME=$(REPO_HOME) BUILD_VENDOR=1 ./$(BUILD_SCRIPT)
build_docker:
docker build -f Dockerfile -t lillymolprivate .
test_lillymol:
docker container exec lilly_mol bash -c 'cd bin/Linux/ && echo "Number of executables built: `ls -1 | wc -l`" && ls -1'
docker container exec lilly_mol bash -c "cd test/ && ./run_all_test.sh"
docker container exec lilly_mol bash -c "cd src/ && ./run_python_unit_tests.sh 2>&1"
start_s3:
docker-compose up -d
sleep 30
@echo 'run s3 commannd with: aws s3 --endpoint "http://localhost:4566" <s3 command>'
stop_s3:
docker-compose down