forked from amazon-archives/amazon-dsstne
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (29 loc) · 791 Bytes
/
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
SHELL=/bin/sh
VPATH=
# Prefix of the directory to install dsstne.
PREFIX ?= $(shell pwd)/amazon-dsstne
# Build directory. Export it for sub-makefiles to use it
export BUILD_DIR ?= $(shell pwd)/build
all: | engine runtime utils tests java
engine:
cd src/amazon/dsstne/engine && make
utils:
cd src/amazon/dsstne/utils && make
runtime:
cd src/amazon/dsstne/runtime && make
tests:
cd tst && make
java: | engine runtime tests
cd java && make
install: all
mkdir -p $(PREFIX)
cp -rfp $(BUILD_DIR)/lib $(PREFIX)
cp -rfp $(BUILD_DIR)/bin $(PREFIX)
cp -rfp $(BUILD_DIR)/include $(PREFIX)
run-tests:
cd tst && make run-tests
clean:
cd src/amazon/dsstne/engine && make clean
cd src/amazon/dsstne/utils && make clean
cd tst && make clean
.PHONY: engine runtime tests java clean