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
10 # http://www.apache.org/licenses/LICENSE-2.0
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
20 ACLOCAL_AMFLAGS = -I ./aclocal
22 SUBDIRS = compiler/cpp lib
37 $(RM) -r autom4te.cache/
47 apache-thrift-test-library \
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
70 @echo $(PACKAGE_VERSION)
72 .PHONY: precross cross
74 $(MAKE) -C $* precross
75 precross: all precross-test precross-lib
78 space := $(empty) $(empty)
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))
91 crossfeature: precross
92 $(CROSS_PY) test/test.py --retry-count 5 --features .* --skip-known-failures --server $(CROSS_LANGS_COMMA_SEPARATED)
94 # feature test needs python build
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 "$*"
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;)
109 codespell_skip_files = \
129 skipped_files = $(subst $(space),$(comma),$(codespell_skip_files))
132 codespell --write-changes --skip=$(skipped_files) --disable-colors
140 ApacheThrift.nuspec \
161 sonar-project.properties \