forked from claczny/VizBin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (33 loc) · 897 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
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 interface
backend:
$(MAKE) -C $(BACKEND_PATH)
interface:
@echo "COPYING: binaries into destination folder ..."
mkdir $(INTERFACE_PATH)/$(PREFIX)
install -m 0755 $(BACKEND_PATH)/pbh_tsne $(INTERFACE_PATH)/$(PREFIX)/pbh_tsne
install -m 0755 $(BACKEND_PATH)/pbh_tsne.exe $(INTERFACE_PATH)/$(PREFIX)/pbh_tsne.exe
install -m 0755 $(BACKEND_PATH)/pbh_tsne_osx $(INTERFACE_PATH)/$(PREFIX)/pbh_tsne_osx
@echo "done."
$(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 .