-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakefile
44 lines (34 loc) · 956 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
42
43
44
# all items to be build
TEASER:=algorithms/TEASER/build/libs/TEASERrunner.jar
ECEC:=algorithms/TEASER/build/libs/ECECRunner.jar
ECTS:=algorithms/ECTS/bin/ects
EDSC:=algorithms/EDSC/bin/edsc
all: build
build: $(TEASER) $(ECEC) $(ECTS) $(EDSC) python R
algorithms/TEASER/build/libs/%:
@cd algorithms/TEASER/ && ./gradlew jar
$(ECTS):
make -C algorithms/ECTS
$(EDSC):
make -C algorithms/EDSC
.PHONY: clean python R
clean:
rm -rf algorithms/ECTS/bin
rm -rf algorithms/EDSC/bin
@cd algorithms/TEASER/ && ./gradlew clean
# Python required for EARLIEST, Fixed and SMAC
ifeq ($(shell which python),)
$(error "Error: could not find python")
endif
python:
python build-util/dependencies.py
# R required for SR-CF and ECDIRE
ifeq (, $(shell which Rscript))
$(error "Error: could not find Rscript")
endif
R:
Rscript build-util/dependencies.R
# octave required for RelClass
ifeq (, $(shell which octave))
$(error "Error: could not find octave")
endif