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 \ |
| 46 | apache-thrift-test-library \ |
| 47 | autoscan.log \ |
| 48 | compile \ |
| 49 | config.guess \ |
| 50 | config.hin \ |
| 51 | config.hin~ \ |
| 52 | config.log \ |
| 53 | config.status \ |
| 54 | config.sub \ |
| 55 | configure \ |
| 56 | configure.scan \ |
| 57 | debcomp \ |
| 58 | install-sh \ |
| 59 | ltmain.sh \ |
| 60 | missing \ |
| 61 | ylwrap |
| 62 | |
David Reiss | e211393 | 2009-03-26 08:47:07 +0000 | [diff] [blame] | 63 | dist-hook: |
James E. King III | b96c438 | 2019-01-24 17:45:07 -0500 | [diff] [blame] | 64 | 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] | 65 | find $(distdir) -type d \( -iname ".deps" -or -iname ".libs" \) | xargs rm -rf |
| 66 | find $(distdir) -type d \( -iname ".svn" -or -iname ".git" \) | xargs rm -rf |
David Reiss | e211393 | 2009-03-26 08:47:07 +0000 | [diff] [blame] | 67 | |
Roger Meier | 2287278 | 2010-10-22 11:20:25 +0000 | [diff] [blame] | 68 | print-version: |
James E. King, III | 0ad20bd | 2017-09-30 15:44:16 -0700 | [diff] [blame] | 69 | @echo $(PACKAGE_VERSION) |
Roger Meier | 2287278 | 2010-10-22 11:20:25 +0000 | [diff] [blame] | 70 | |
Nobuaki Sukegawa | f5b795d | 2015-03-29 14:48:48 +0900 | [diff] [blame] | 71 | .PHONY: precross cross |
Roger Meier | 41ad434 | 2015-03-24 22:30:40 +0100 | [diff] [blame] | 72 | precross-%: all |
| 73 | $(MAKE) -C $* precross |
| 74 | precross: all precross-test precross-lib |
Roger Meier | 7e10329 | 2014-02-22 18:13:03 +0100 | [diff] [blame] | 75 | |
Nobuaki Sukegawa | 03f0e18 | 2015-05-09 18:33:42 +0900 | [diff] [blame] | 76 | empty := |
| 77 | space := $(empty) $(empty) |
| 78 | comma := , |
| 79 | |
wilfrem | 2c69b5a | 2015-04-20 19:24:50 +0900 | [diff] [blame] | 80 | 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@ |
Nobuaki Sukegawa | 03f0e18 | 2015-05-09 18:33:42 +0900 | [diff] [blame] | 81 | CROSS_LANGS_COMMA_SEPARATED = $(subst $(space),$(comma),$(CROSS_LANGS)) |
| 82 | |
Nobuaki Sukegawa | ffc2bb3 | 2016-01-12 19:20:05 +0900 | [diff] [blame] | 83 | if WITH_PY3 |
| 84 | CROSS_PY=$(PYTHON3) |
| 85 | else |
| 86 | CROSS_PY=$(PYTHON) |
| 87 | endif |
| 88 | |
Nobuaki Sukegawa | bd16530 | 2016-01-19 11:10:07 +0900 | [diff] [blame] | 89 | if WITH_PYTHON |
Nobuaki Sukegawa | 2c64bdd | 2016-09-04 15:33:40 +0900 | [diff] [blame] | 90 | crossfeature: precross |
James E. King III | 714c77c | 2018-03-20 19:58:38 -0400 | [diff] [blame] | 91 | $(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] | 92 | else |
| 93 | # feature test needs python build |
Nobuaki Sukegawa | 2c64bdd | 2016-09-04 15:33:40 +0900 | [diff] [blame] | 94 | crossfeature: |
Nobuaki Sukegawa | bd16530 | 2016-01-19 11:10:07 +0900 | [diff] [blame] | 95 | endif |
Roger Meier | bb23ead | 2015-04-11 13:12:35 +0200 | [diff] [blame] | 96 | |
Nobuaki Sukegawa | 2c64bdd | 2016-09-04 15:33:40 +0900 | [diff] [blame] | 97 | cross-%: precross crossfeature |
James E. King III | 714c77c | 2018-03-20 19:58:38 -0400 | [diff] [blame] | 98 | $(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] | 99 | |
| 100 | cross: cross-.* |
| 101 | |
Nobuaki Sukegawa | 147a5a2 | 2015-04-11 23:01:40 +0900 | [diff] [blame] | 102 | TIMES = 1 2 3 |
Roger Meier | bb23ead | 2015-04-11 13:12:35 +0200 | [diff] [blame] | 103 | fail: precross |
Nobuaki Sukegawa | ffc2bb3 | 2016-01-12 19:20:05 +0900 | [diff] [blame] | 104 | $(CROSS_PY) test/test.py || true |
| 105 | $(CROSS_PY) test/test.py --update-expected-failures=overwrite |
Nobuaki Sukegawa | 147a5a2 | 2015-04-11 23:01:40 +0900 | [diff] [blame] | 106 | $(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] | 107 | |
Konrad Grochowski | 05fb842 | 2014-11-24 11:16:54 +0100 | [diff] [blame] | 108 | codespell_skip_files = \ |
Konrad Grochowski | 40b2b64 | 2014-12-09 15:26:39 +0100 | [diff] [blame] | 109 | *.jar \ |
| 110 | *.class \ |
| 111 | *.so \ |
Konrad Grochowski | 05fb842 | 2014-11-24 11:16:54 +0100 | [diff] [blame] | 112 | *.a \ |
| 113 | *.la \ |
| 114 | *.o \ |
| 115 | *.p12 \ |
| 116 | *OCamlMakefile \ |
| 117 | .keystore \ |
| 118 | .truststore \ |
| 119 | CHANGES \ |
| 120 | config.sub \ |
| 121 | configure \ |
| 122 | depcomp \ |
| 123 | libtool.m4 \ |
| 124 | output.* \ |
| 125 | rebar \ |
| 126 | thrift |
| 127 | |
Konrad Grochowski | 05fb842 | 2014-11-24 11:16:54 +0100 | [diff] [blame] | 128 | skipped_files = $(subst $(space),$(comma),$(codespell_skip_files)) |
| 129 | |
| 130 | style-local: |
| 131 | codespell --write-changes --skip=$(skipped_files) --disable-colors |
| 132 | |
Jake Farrell | e0c5316 | 2011-11-16 12:58:36 +0000 | [diff] [blame] | 133 | EXTRA_DIST = \ |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 134 | .clang-format \ |
James E. King III | b96c438 | 2019-01-24 17:45:07 -0500 | [diff] [blame] | 135 | .dockerignore \ |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 136 | .editorconfig \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 137 | .travis.yml \ |
Jens Geyer | f3a2974 | 2017-11-30 22:30:03 +0100 | [diff] [blame] | 138 | .rustfmt.toml \ |
James E. King III | b96c438 | 2019-01-24 17:45:07 -0500 | [diff] [blame] | 139 | ApacheThrift.nuspec \ |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 140 | appveyor.yml \ |
James E. King III | b96c438 | 2019-01-24 17:45:07 -0500 | [diff] [blame] | 141 | bootstrap.sh \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 142 | bower.json \ |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 143 | build \ |
James E. King III | b96c438 | 2019-01-24 17:45:07 -0500 | [diff] [blame] | 144 | CHANGES.md \ |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 145 | CMakeLists.txt \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 146 | composer.json \ |
| 147 | contrib \ |
Roger Meier | a199a16 | 2015-04-30 18:19:06 +0200 | [diff] [blame] | 148 | CONTRIBUTING.md \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 149 | debian \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 150 | doap.rdf \ |
James E. King III | b96c438 | 2019-01-24 17:45:07 -0500 | [diff] [blame] | 151 | doc \ |
| 152 | dub.json \ |
| 153 | jitpack.yml \ |
James E. King, III | 0ad20bd | 2017-09-30 15:44:16 -0700 | [diff] [blame] | 154 | LANGUAGES.md \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 155 | LICENSE \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 156 | NOTICE \ |
James E. King III | b96c438 | 2019-01-24 17:45:07 -0500 | [diff] [blame] | 157 | package.json \ |
| 158 | phpcs.xml.dist \ |
Nobuaki Sukegawa | 73d1637 | 2016-03-19 23:32:11 +0900 | [diff] [blame] | 159 | README.md \ |
James E. King III | b96c438 | 2019-01-24 17:45:07 -0500 | [diff] [blame] | 160 | sonar-project.properties \ |
Nobuaki Sukegawa | 73d1637 | 2016-03-19 23:32:11 +0900 | [diff] [blame] | 161 | Thrift.podspec |