forked from RedisGraph/RedisGraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
108 lines (81 loc) · 2.63 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
MAKEFLAGS += --no-print-directory
.PHONY: all parser clean package docker upload-artifacts upload-release docker_push docker_alpine \
builddocs localdocs deploydocs test benchmark test_valgrind fuzz help
define HELP
make all # Build everything
DEBUG=1 # Build for debugging
COV=1 # Build for coverage analysis (implies DEBUG=1)
STATIC_OMP=1 # Link OpenMP statically
make clean # Clean build artifacts
ALL=1 # Completely remove
make test # Run tests
LIST=1 # List all tests, do not execute
UNIT=1 # Run unit tests
FLOW=1 # Run flow tests (Python)
TCK=1 # Run TCK framework tests
COV=1 # Perform coverage analysis
SLOW=1 # Do not run in parallel
TEST=test # Run specific test
TESTFILE=file # Run tests listed in file
FAILFILE=file # Write failed tests to file
make memcheck # Run tests with Valgrind
make benchmark # Run benchmarks
make fuzz # Run fuzz tester
make package # Build RAMP packages
make cov-upload # Upload coverage data to codecov.io
make upload-artifacts # copy snapshot packages to S3
OSNICK=nick # copy snapshots for specific OSNICK
make upload-release # copy release packages to S3
common options for upload operations:
STAGING=1 # copy to staging lab area (for validation)
FORCE=1 # allow operation outside CI environment
VERBOSE=1 # show more details
NOP=1 # do not copy, just print commands
endef
all:
@$(MAKE) -C src all
clean:
@$(MAKE) -C src $@
clean-parser:
$(MAKE) -C deps/libcypher-parser distclean
clean-graphblas:
$(MAKE) -C deps/GraphBLAS clean
pack package: all
@$(MAKE) -C src package
upload-release:
@RELEASE=1 ./sbin/upload-artifacts
upload-artifacts:
@SNAPSHOT=1 ./sbin/upload-artifacts
docker:
@$(MAKE) -C build/docker
docker_alpine:
@$(MAKE) -C build/docker OSNICK=alpine3
docker_push: docker
@docker push redislabs/redisgraph:latest
builddocs:
@mkdocs build
localdocs: builddocs
@mkdocs serve
deploydocs: builddocs
@mkdocs gh-deploy
test:
@$(MAKE) -C src test
benchmark:
@$(MAKE) -C src benchmark
memcheck:
@$(MAKE) -C src memcheck
cov-upload:
@$(MAKE) -C src cov-upload
fuzz:
@$(MAKE) -C src fuzz
ifneq ($(HELP),)
ifneq ($(filter help,$(MAKECMDGOALS)),)
HELPFILE:=$(shell mktemp /tmp/make.help.XXXX)
endif
endif
help:
$(file >$(HELPFILE),$(HELP))
@echo
@cat $(HELPFILE)
@echo
@-rm -f $(HELPFILE)