-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
49 lines (36 loc) · 1.13 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
export EXTERNAL = $(realpath external)
export TSNEDIR = $(realpath wikimap/TSNE)
export GRAPHDIR = $(realpath wikimap/Graph)
export EMBEDDINGS = $(realpath wikimap/Embeddings/)
export EDGEARRAYDIR = $(realpath wikimap/Tables/EdgeArray)
export TABLEIMPORTERDIR = $(realpath wikimap/Tables/TableImporter)
export NNDIR = $(realpath wikimap/NearestNeighbors/)
export CXX = g++
export CXXFLAGS = -std=c++11 -march=native -O3 -Wall
.DEFAULT_GOAL := build
.PHONY: test clean build embeddings edgearray tsne tableimporter graph nn
%.o: %.cpp
$(CXX) $(CXXFLAGS) -c -o $@ $^
build: embeddings edgearray tsne tableimporter graph nn
embeddings:
cd $(EMBEDDINGS) && $(MAKE)
edgearray:
cd $(EDGEARRAYDIR) && $(MAKE)
tsne:
cd $(TSNEDIR) && $(MAKE)
tableimporter:
cd $(TABLEIMPORTERDIR) && $(MAKE)
graph:
cd $(GRAPHDIR) && $(MAKE)
nn:
cd $(NNDIR) && $(MAKE)
test: build
python -m unittest discover -s wikimap/ -v
clean:
find . -name '*.pyc' -delete
cd $(EMBEDDINGS) && $(MAKE) clean
cd $(EDGEARRAYDIR) && $(MAKE) clean
cd $(TSNEDIR) && $(MAKE) clean
cd $(TABLEIMPORTERDIR) && $(MAKE) clean
cd $(GRAPHDIR) && $(MAKE) clean
cd $(NNDIR) && $(MAKE) clean