-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
56 lines (42 loc) · 1.15 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
.PHONY: all clean graphblas-java-clean
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
ROOT_DIR := $(dir $(mkfile_path))
GRB_BUILD := $(ROOT_DIR)GraphBLAS/build
OS := $(shell uname -s)
ifeq ($(OS),Linux)
GRB_LIB := $(GRB_BUILD)/libgraphblas.so
else
GRB_LIB := $(GRB_BUILD)/libgraphblas.dynlib
endif
VERSION=
all: build
mvn clean install
build: $(GRB_LIB)
LD_LIBRARY_PATH=$(GRB_BUILD):$$LD_LIBRARY_PATH mvn clean install
graphblas-java-clean:
mvn clean
clean: graphblas-java-clean
cd $(ROOT_DIR)/GraphBLAS && make clean
$(GRB_LIB):
cd GraphBLAS; \
make clean; make JOBS=8 library
grb-install: $(GRB_LIB)
cd $(ROOT_DIR)/GraphBLAS; \
make install
set-Darwin-version:
test $(VERSION)
mvn versions:set -DnewVersion=$(VERSION)-mac
mvn versions:update-child-modules
set-Linux-version:
test $(VERSION)
mvn versions:set -DnewVersion=$(VERSION)-linux
mvn versions:update-child-modules
set-version:
test $(VERSION)
mvn versions:set -DnewVersion=$(VERSION)
mvn versions:update-child-modules
deploy:
mvn clean install
mvn deploy -pl graphblas-package -DskipTests
mvn nexus-staging:release -pl graphblas-package
release: set-$(OS)-version deploy