David Reiss | ea2cba8 | 2009-03-30 21:35:00 +0000 | [diff] [blame] | 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 | |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 20 | ACLOCAL_AMFLAGS = -I ./aclocal |
| 21 | |
Roger Meier | c88d581 | 2014-01-26 11:51:26 +0100 | [diff] [blame] | 22 | SUBDIRS = compiler/cpp lib |
Jake Farrell | 627f1a0 | 2011-09-14 03:43:49 +0000 | [diff] [blame] | 23 | |
| 24 | if WITH_TESTS |
| 25 | SUBDIRS += test |
| 26 | endif |
David Reiss | e211393 | 2009-03-26 08:47:07 +0000 | [diff] [blame] | 27 | |
Roger Meier | c88d581 | 2014-01-26 11:51:26 +0100 | [diff] [blame] | 28 | if WITH_TUTORIAL |
jfarrell | 102c600 | 2013-08-15 21:20:19 -0400 | [diff] [blame] | 29 | SUBDIRS += tutorial |
Roger Meier | c88d581 | 2014-01-26 11:51:26 +0100 | [diff] [blame] | 30 | endif |
jfarrell | 102c600 | 2013-08-15 21:20:19 -0400 | [diff] [blame] | 31 | |
James E. King III | b96c438 | 2019-01-24 17:45:07 -0500 | [diff] [blame] | 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 \ |
James E. King III | f95620d | 2019-01-28 18:15:13 -0500 | [diff] [blame] | 46 | aclocal.m4 \ |
James E. King III | b96c438 | 2019-01-24 17:45:07 -0500 | [diff] [blame] | 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 | |
David Reiss | e211393 | 2009-03-26 08:47:07 +0000 | [diff] [blame] | 64 | dist-hook: |
James E. King III | b96c438 | 2019-01-24 17:45:07 -0500 | [diff] [blame] | 65 | find $(distdir) -type f \( -iname ".DS_Store" -or -iname "._*" -or -iname ".gitignore" \) | xargs rm -f |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 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 |
David Reiss | e211393 | 2009-03-26 08:47:07 +0000 | [diff] [blame] | 68 | |
Roger Meier | 2287278 | 2010-10-22 11:20:25 +0000 | [diff] [blame] | 69 | print-version: |
James E. King, III | 0ad20bd | 2017-09-30 15:44:16 -0700 | [diff] [blame] | 70 | @echo $(PACKAGE_VERSION) |
Roger Meier | 2287278 | 2010-10-22 11:20:25 +0000 | [diff] [blame] | 71 | |
Nobuaki Sukegawa | f5b795d | 2015-03-29 14:48:48 +0900 | [diff] [blame] | 72 | .PHONY: precross cross |
Roger Meier | 41ad434 | 2015-03-24 22:30:40 +0100 | [diff] [blame] | 73 | precross-%: all |
| 74 | $(MAKE) -C $* precross |
| 75 | precross: all precross-test precross-lib |
Roger Meier | 7e10329 | 2014-02-22 18:13:03 +0100 | [diff] [blame] | 76 | |
Nobuaki Sukegawa | 03f0e18 | 2015-05-09 18:33:42 +0900 | [diff] [blame] | 77 | empty := |
| 78 | space := $(empty) $(empty) |
| 79 | comma := , |
| 80 | |
Kino Roy | a9da9eb | 2022-10-07 23:13:01 -0700 | [diff] [blame] | 81 | CROSS_LANGS = @MAYBE_CPP@ @MAYBE_C_GLIB@ @MAYBE_CL@ @MAYBE_D@ @MAYBE_JAVA@ @MAYBE_PYTHON@ @MAYBE_PY3@ @MAYBE_RUBY@ @MAYBE_PERL@ @MAYBE_PHP@ @MAYBE_GO@ @MAYBE_NODEJS@ @MAYBE_DART@ @MAYBE_ERLANG@ @MAYBE_LUA@ @MAYBE_RS@ @MAYBE_NETSTD@ @MAYBE_NODETS@ @MAYBE_KOTLIN@ @MAYBE_SWIFT@ |
Nobuaki Sukegawa | 03f0e18 | 2015-05-09 18:33:42 +0900 | [diff] [blame] | 82 | CROSS_LANGS_COMMA_SEPARATED = $(subst $(space),$(comma),$(CROSS_LANGS)) |
| 83 | |
Nobuaki Sukegawa | ffc2bb3 | 2016-01-12 19:20:05 +0900 | [diff] [blame] | 84 | if WITH_PY3 |
| 85 | CROSS_PY=$(PYTHON3) |
| 86 | else |
| 87 | CROSS_PY=$(PYTHON) |
| 88 | endif |
| 89 | |
Nobuaki Sukegawa | bd16530 | 2016-01-19 11:10:07 +0900 | [diff] [blame] | 90 | if WITH_PYTHON |
Nobuaki Sukegawa | 2c64bdd | 2016-09-04 15:33:40 +0900 | [diff] [blame] | 91 | crossfeature: precross |
James E. King III | 714c77c | 2018-03-20 19:58:38 -0400 | [diff] [blame] | 92 | $(CROSS_PY) test/test.py --retry-count 5 --features .* --skip-known-failures --server $(CROSS_LANGS_COMMA_SEPARATED) |
Nobuaki Sukegawa | bd16530 | 2016-01-19 11:10:07 +0900 | [diff] [blame] | 93 | else |
| 94 | # feature test needs python build |
Nobuaki Sukegawa | 2c64bdd | 2016-09-04 15:33:40 +0900 | [diff] [blame] | 95 | crossfeature: |
Nobuaki Sukegawa | bd16530 | 2016-01-19 11:10:07 +0900 | [diff] [blame] | 96 | endif |
Roger Meier | bb23ead | 2015-04-11 13:12:35 +0200 | [diff] [blame] | 97 | |
Nobuaki Sukegawa | 2c64bdd | 2016-09-04 15:33:40 +0900 | [diff] [blame] | 98 | cross-%: precross crossfeature |
James E. King III | 714c77c | 2018-03-20 19:58:38 -0400 | [diff] [blame] | 99 | $(CROSS_PY) test/test.py --retry-count 5 --skip-known-failures --server $(CROSS_LANGS_COMMA_SEPARATED) --client $(CROSS_LANGS_COMMA_SEPARATED) --regex "$*" |
Nobuaki Sukegawa | 2c64bdd | 2016-09-04 15:33:40 +0900 | [diff] [blame] | 100 | |
| 101 | cross: cross-.* |
| 102 | |
Nobuaki Sukegawa | 147a5a2 | 2015-04-11 23:01:40 +0900 | [diff] [blame] | 103 | TIMES = 1 2 3 |
Roger Meier | bb23ead | 2015-04-11 13:12:35 +0200 | [diff] [blame] | 104 | fail: precross |
Nobuaki Sukegawa | ffc2bb3 | 2016-01-12 19:20:05 +0900 | [diff] [blame] | 105 | $(CROSS_PY) test/test.py || true |
| 106 | $(CROSS_PY) test/test.py --update-expected-failures=overwrite |
Nobuaki Sukegawa | 147a5a2 | 2015-04-11 23:01:40 +0900 | [diff] [blame] | 107 | $(foreach var,$(TIMES),test/test.py -s || true;test/test.py --update-expected-failures=merge;) |
Roger Meier | 41ad434 | 2015-03-24 22:30:40 +0100 | [diff] [blame] | 108 | |
Konrad Grochowski | 05fb842 | 2014-11-24 11:16:54 +0100 | [diff] [blame] | 109 | codespell_skip_files = \ |
Konrad Grochowski | 40b2b64 | 2014-12-09 15:26:39 +0100 | [diff] [blame] | 110 | *.jar \ |
| 111 | *.class \ |
| 112 | *.so \ |
Konrad Grochowski | 05fb842 | 2014-11-24 11:16:54 +0100 | [diff] [blame] | 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 | |
Konrad Grochowski | 05fb842 | 2014-11-24 11:16:54 +0100 | [diff] [blame] | 129 | skipped_files = $(subst $(space),$(comma),$(codespell_skip_files)) |
| 130 | |
| 131 | style-local: |
| 132 | codespell --write-changes --skip=$(skipped_files) --disable-colors |
| 133 | |
Thomas | 63f0458 | 2024-03-21 22:51:07 +0900 | [diff] [blame] | 134 | distdir: |
| 135 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
| 136 | |
Jake Farrell | e0c5316 | 2011-11-16 12:58:36 +0000 | [diff] [blame] | 137 | EXTRA_DIST = \ |
Jens Geyer | 2ef0113 | 2021-02-04 22:41:50 +0100 | [diff] [blame] | 138 | .asf.yaml \ |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 139 | .clang-format \ |
James E. King III | b96c438 | 2019-01-24 17:45:07 -0500 | [diff] [blame] | 140 | .dockerignore \ |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 141 | .editorconfig \ |
Jens Geyer | 2ef0113 | 2021-02-04 22:41:50 +0100 | [diff] [blame] | 142 | .eslintignore \ |
| 143 | .eslintrc.json \ |
| 144 | .flake8 \ |
| 145 | .gitattributes \ |
| 146 | .gitignore \ |
Jens Geyer | 0d0ac75 | 2024-03-12 21:49:28 +0100 | [diff] [blame] | 147 | .github/dependabot.yml \ |
| 148 | .github/pull_request_template.md \ |
| 149 | .github/stale.yml \ |
| 150 | .github/workflows/build.yml \ |
| 151 | .github/workflows/cmake.yml \ |
| 152 | .github/workflows/pypi.yml \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 153 | .travis.yml \ |
James E. King III | b96c438 | 2019-01-24 17:45:07 -0500 | [diff] [blame] | 154 | ApacheThrift.nuspec \ |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 155 | appveyor.yml \ |
James E. King III | b96c438 | 2019-01-24 17:45:07 -0500 | [diff] [blame] | 156 | bootstrap.sh \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 157 | bower.json \ |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 158 | build \ |
James E. King III | b96c438 | 2019-01-24 17:45:07 -0500 | [diff] [blame] | 159 | CHANGES.md \ |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 160 | CMakeLists.txt \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 161 | composer.json \ |
| 162 | contrib \ |
Roger Meier | a199a16 | 2015-04-30 18:19:06 +0200 | [diff] [blame] | 163 | CONTRIBUTING.md \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 164 | debian \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 165 | doap.rdf \ |
James E. King III | b96c438 | 2019-01-24 17:45:07 -0500 | [diff] [blame] | 166 | doc \ |
| 167 | dub.json \ |
Jens Geyer | f087ec4 | 2022-02-02 23:14:52 +0100 | [diff] [blame] | 168 | go.mod \ |
James E. King III | b96c438 | 2019-01-24 17:45:07 -0500 | [diff] [blame] | 169 | jitpack.yml \ |
James E. King, III | 0ad20bd | 2017-09-30 15:44:16 -0700 | [diff] [blame] | 170 | LANGUAGES.md \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 171 | LICENSE \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 172 | NOTICE \ |
James E. King III | b96c438 | 2019-01-24 17:45:07 -0500 | [diff] [blame] | 173 | package.json \ |
Jens Geyer | 2ef0113 | 2021-02-04 22:41:50 +0100 | [diff] [blame] | 174 | package-lock.json \ |
James E. King III | b96c438 | 2019-01-24 17:45:07 -0500 | [diff] [blame] | 175 | phpcs.xml.dist \ |
Nobuaki Sukegawa | 73d1637 | 2016-03-19 23:32:11 +0900 | [diff] [blame] | 176 | README.md \ |
Allen George | 55c3e4c | 2021-03-01 23:19:52 -0500 | [diff] [blame] | 177 | rust-toolchain \ |
James E. King III | b96c438 | 2019-01-24 17:45:07 -0500 | [diff] [blame] | 178 | sonar-project.properties \ |
Nobuaki Sukegawa | 73d1637 | 2016-03-19 23:32:11 +0900 | [diff] [blame] | 179 | Thrift.podspec |