-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile
57 lines (48 loc) · 1.4 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
BACKEND_PATH = src/backend/bh_tsne
INTERFACE_PATH = src/interface/VizBin
PREFIX = src/tsne
CLEANDIRS = $(BACKEND_PATH) $(INTERFACE_PATH)
.PHONY: all backend interface clean install $(CLEANDIRS)
####
#COMPILE ALL
####
all: backend_all interface
linux: backend_linux interface
windows: backend_windows interface
osx: backend_osx interface
backend_all: backend_linux backend_windows backend_osx
$(MAKE) -C $(BACKEND_PATH)
backend_linux:
$(MAKE) -C $(BACKEND_PATH) linux
@echo "COPYING: linux binaries into destination folder ..."
mkdir -p $(INTERFACE_PATH)/$(PREFIX)
install -m 0755 $(BACKEND_PATH)/pbh_tsne $(INTERFACE_PATH)/$(PREFIX)/pbh_tsne
@echo "done."
backend_windows:
$(MAKE) -C $(BACKEND_PATH) windows
@echo "COPYING: windows binaries into destination folder ..."
mkdir -p $(INTERFACE_PATH)/$(PREFIX)
install -m 0755 $(BACKEND_PATH)/pbh_tsne.exe $(INTERFACE_PATH)/$(PREFIX)/pbh_tsne.exe
@echo "done."
backend_osx:
$(MAKE) -C $(BACKEND_PATH) osx
@echo "COPYING: mac OS binaries into destination folder ..."
mkdir -p $(INTERFACE_PATH)/$(PREFIX)
install -m 0755 $(BACKEND_PATH)/pbh_tsne_osx $(INTERFACE_PATH)/$(PREFIX)/pbh_tsne_osx
@echo "done."
interface:
$(MAKE) -C $(INTERFACE_PATH)
####
#CLEAN
####
clean: $(CLEANDIRS)
$(CLEANDIRS):
echo $@
make -C $@ clean
clean:
rm -f VizBin-dist.jar
####
#INSTALL
####
install: $(INSTALLDIRS)
install -m 0755 $(INTERFACE_PATH)/dist/VizBin-dist.jar .