]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/thrift/Makefile.am
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / jaegertracing / thrift / Makefile.am
1 #
2 # Licensed to the Apache Software Foundation (ASF) under one
3 # or more contributor license agreements. See the NOTICE file
4 # distributed with this work for additional information
5 # regarding copyright ownership. The ASF licenses this file
6 # to you under the Apache License, Version 2.0 (the
7 # "License"); you may not use this file except in compliance
8 # with the License. You may obtain a copy of the License at
9 #
10 # http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing,
13 # software distributed under the License is distributed on an
14 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 # KIND, either express or implied. See the License for the
16 # specific language governing permissions and limitations
17 # under the License.
18 #
19
20 ACLOCAL_AMFLAGS = -I ./aclocal
21
22 SUBDIRS = compiler/cpp lib
23
24 if WITH_TESTS
25 SUBDIRS += test
26 endif
27
28 if WITH_TUTORIAL
29 SUBDIRS += tutorial
30 endif
31
32 clean-local:
33 $(RM) -r vendor/
34
35 distclean-local:
36 $(RM) -r .dub/
37 $(RM) -r autom4te.cache/
38
39 CLEANFILES = \
40 composer.lock \
41 dub.selections.json
42
43 DISTCLEANFILES = \
44 Makefile \
45 Makefile.in \
46 aclocal.m4 \
47 apache-thrift-test-library \
48 autoscan.log \
49 compile \
50 config.guess \
51 config.hin \
52 config.hin~ \
53 config.log \
54 config.status \
55 config.sub \
56 configure \
57 configure.scan \
58 debcomp \
59 install-sh \
60 ltmain.sh \
61 missing \
62 ylwrap
63
64 dist-hook:
65 find $(distdir) -type f \( -iname ".DS_Store" -or -iname "._*" -or -iname ".gitignore" \) | xargs rm -f
66 find $(distdir) -type d \( -iname ".deps" -or -iname ".libs" \) | xargs rm -rf
67 find $(distdir) -type d \( -iname ".svn" -or -iname ".git" \) | xargs rm -rf
68
69 print-version:
70 @echo $(PACKAGE_VERSION)
71
72 .PHONY: precross cross
73 precross-%: all
74 $(MAKE) -C $* precross
75 precross: all precross-test precross-lib
76
77 empty :=
78 space := $(empty) $(empty)
79 comma := ,
80
81 CROSS_LANGS = @MAYBE_CPP@ @MAYBE_C_GLIB@ @MAYBE_CL@ @MAYBE_D@ @MAYBE_JAVA@ @MAYBE_CSHARP@ @MAYBE_PYTHON@ @MAYBE_PY3@ @MAYBE_RUBY@ @MAYBE_HASKELL@ @MAYBE_PERL@ @MAYBE_PHP@ @MAYBE_GO@ @MAYBE_NODEJS@ @MAYBE_DART@ @MAYBE_ERLANG@ @MAYBE_LUA@ @MAYBE_RS@ @MAYBE_DOTNETCORE@ @MAYBE_NODETS@
82 CROSS_LANGS_COMMA_SEPARATED = $(subst $(space),$(comma),$(CROSS_LANGS))
83
84 if WITH_PY3
85 CROSS_PY=$(PYTHON3)
86 else
87 CROSS_PY=$(PYTHON)
88 endif
89
90 if WITH_PYTHON
91 crossfeature: precross
92 $(CROSS_PY) test/test.py --retry-count 5 --features .* --skip-known-failures --server $(CROSS_LANGS_COMMA_SEPARATED)
93 else
94 # feature test needs python build
95 crossfeature:
96 endif
97
98 cross-%: precross crossfeature
99 $(CROSS_PY) test/test.py --retry-count 5 --skip-known-failures --server $(CROSS_LANGS_COMMA_SEPARATED) --client $(CROSS_LANGS_COMMA_SEPARATED) --regex "$*"
100
101 cross: cross-.*
102
103 TIMES = 1 2 3
104 fail: precross
105 $(CROSS_PY) test/test.py || true
106 $(CROSS_PY) test/test.py --update-expected-failures=overwrite
107 $(foreach var,$(TIMES),test/test.py -s || true;test/test.py --update-expected-failures=merge;)
108
109 codespell_skip_files = \
110 *.jar \
111 *.class \
112 *.so \
113 *.a \
114 *.la \
115 *.o \
116 *.p12 \
117 *OCamlMakefile \
118 .keystore \
119 .truststore \
120 CHANGES \
121 config.sub \
122 configure \
123 depcomp \
124 libtool.m4 \
125 output.* \
126 rebar \
127 thrift
128
129 skipped_files = $(subst $(space),$(comma),$(codespell_skip_files))
130
131 style-local:
132 codespell --write-changes --skip=$(skipped_files) --disable-colors
133
134 EXTRA_DIST = \
135 .clang-format \
136 .dockerignore \
137 .editorconfig \
138 .travis.yml \
139 .rustfmt.toml \
140 ApacheThrift.nuspec \
141 appveyor.yml \
142 bootstrap.sh \
143 bower.json \
144 build \
145 CHANGES.md \
146 CMakeLists.txt \
147 composer.json \
148 contrib \
149 CONTRIBUTING.md \
150 debian \
151 doap.rdf \
152 doc \
153 dub.json \
154 jitpack.yml \
155 LANGUAGES.md \
156 LICENSE \
157 NOTICE \
158 package.json \
159 phpcs.xml.dist \
160 README.md \
161 sonar-project.properties \
162 Thrift.podspec