-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (35 loc) · 1.33 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
# Copyright (c) 2013-2018 The yana Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. See the AUTHORS file for names of contributors.
###############################################################################
all test check sample clean install uninstall: platform-deps
cd src && $(MAKE) $@
platform-deps:
sh ./tools/configure.sh build_config.mk .
doc: platform-deps
cd mkdocs && $(MAKE)
distclean: platform-deps
rm -f src/*.o util/*.o src/*.a src/*.so src/*.sl src/*.a_* src/*.so_* src/*.sl_*
rm -f samples/*.o samples/*_sample samples/*_sample_*
rm -f third-party/gtest/src/*.o third-party/tap/*.o
rm -f tests/*.o tests/*_test tests/*_test_* third-party/tap/*_test build_config.mk
find . -name \*.xml -o -name \*.gcda -o -name \*.gcno -o -name \*.bak -o -name \.DS_Store -o -name \*~ -type f |xargs -I {} rm -f {}
cd mkdocs && $(MAKE) distclean
format:
find include src tests -name "*.[h|c]" -o -name "*.cc" |xargs -I {} clang-format -i --style=file {}
cover:
gcovr -x -r . -o coverage.xml
xml:
tests/rdfsa_test --gtest_output=xml:rdfsa_test.xml
docker build:
docker build -t yana .
run:
docker run -d -p 8765:8765 -p 19221:19221 --name=yana yana
inspect:
docker inspect yana
rmi:
docker rmi -f yana
stop:
docker stop yana
start:
docker start yana