forked from stellar/stellar-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
57 lines (45 loc) · 1.85 KB
/
Makefile.am
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
## Process this file with automake to produce Makefile.in
SUBDIRS = lib src
AM_EXTRA_RECURSIVE_TARGETS = check-valgrind
ACLOCAL_AMFLAGS = -I m4
dist_doc_DATA = docs/stellar-core_example.cfg \
docs/stellar-core_standalone.cfg \
docs/stellar-core_testnet.cfg docs/software/admin.md \
docs/software/commands.md
man_MANS = docs/stellar-core.1
include $(top_srcdir)/common.mk
.PHONY: always
always:
@:
# This formats the man page, substituting the file
# software/commands.md for the line contianing %commands%. After
# formatting the man page with pandoc, it substitutes $(PREFIX) for
# the string %prefix%. In the event that pandoc is not found, instead
# of failing with an error, just use the last version successfully
docs/stellar-core.1: docs/stellar-core.1.md docs/software/commands.md
mkdir -p docs
sed -ne '/^#/,$$p' "$(top_srcdir)/docs/software/commands.md" \
| sed -e '/^%commands%$$/{s///; r/dev/stdin' -e '}' \
$(top_srcdir)/docs/stellar-core.1.md > tmp.man.md
-pandoc -s -f markdown -t man -o "$(top_srcdir)/[email protected]~" tmp.man.md \
&& mv -f "$(top_srcdir)/[email protected]~" "$(top_srcdir)/[email protected]"
rm -f tmp.man.md
sed -e "s|%prefix%|$(prefix)|g" "$(top_srcdir)/[email protected]" > "$@~" \
&& mv -f "$@~" "$@"
if USE_CLANG_FORMAT
format: always
cd src && $(MAKE) $(AM_MAKEFLAGS) $@
endif # USE_CLANG_FORMAT
if USE_AFL_FUZZ
fuzz-testcases fuzz fuzz-clean: all
cd src && $(MAKE) $(AM_MAKEFLAGS) $@
endif # USE_AFL_FUZZ
EXTRA_DIST = stellar-core.supp test/testnet/multitail.conf \
test/testnet/run-test.sh README.md make-mks
@VALGRIND_CHECK_RULES@
VALGRIND_FLAGS = --num-callers=30 --trace-children=yes \
--trace-children-skip=hostname,aws,gcutil,gcloud,azure,node,python
VALGRIND_SUPPRESSIONS_FILES = stellar-core.supp
maintainer-clean-local:
cd $(srcdir) && rm -rf `sed -ne 's!^/!!p' .gitignore` *~ .gitignore~
CLEANFILES = test-suite.log .gitignore~ *~