2009-03-30 21:35:00 +00:00
|
|
|
#
|
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one
|
|
|
|
# or more contributor license agreements. See the NOTICE file
|
|
|
|
# distributed with this work for additional information
|
|
|
|
# regarding copyright ownership. The ASF licenses this file
|
|
|
|
# to you under the Apache License, Version 2.0 (the
|
|
|
|
# "License"); you may not use this file except in compliance
|
|
|
|
# with the License. You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing,
|
|
|
|
# software distributed under the License is distributed on an
|
|
|
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
|
# KIND, either express or implied. See the License for the
|
|
|
|
# specific language governing permissions and limitations
|
|
|
|
# under the License.
|
|
|
|
#
|
|
|
|
|
2007-12-28 18:25:33 +00:00
|
|
|
ACLOCAL_AMFLAGS = -I ./aclocal
|
|
|
|
|
2014-01-26 10:51:26 +00:00
|
|
|
SUBDIRS = compiler/cpp lib
|
2011-09-14 03:43:49 +00:00
|
|
|
|
|
|
|
if WITH_TESTS
|
|
|
|
SUBDIRS += test
|
|
|
|
endif
|
2009-03-26 08:47:07 +00:00
|
|
|
|
2014-01-26 10:51:26 +00:00
|
|
|
if WITH_TUTORIAL
|
2013-08-16 01:20:19 +00:00
|
|
|
SUBDIRS += tutorial
|
2014-01-26 10:51:26 +00:00
|
|
|
endif
|
2013-08-16 01:20:19 +00:00
|
|
|
|
2009-03-26 08:47:07 +00:00
|
|
|
dist-hook:
|
2014-10-03 18:42:54 +00:00
|
|
|
find $(distdir) -type f \( -iname ".DS_Store" -or -iname "._*" -or -iname ".gitignore" \) | xargs rm -rf
|
|
|
|
find $(distdir) -type d \( -iname ".deps" -or -iname ".libs" \) | xargs rm -rf
|
|
|
|
find $(distdir) -type d \( -iname ".svn" -or -iname ".git" \) | xargs rm -rf
|
2009-03-26 08:47:07 +00:00
|
|
|
|
2010-10-22 11:20:25 +00:00
|
|
|
print-version:
|
2014-10-03 18:42:54 +00:00
|
|
|
@echo $(VERSION)
|
2010-10-22 11:20:25 +00:00
|
|
|
|
2015-03-29 05:48:48 +00:00
|
|
|
.PHONY: precross cross
|
2015-03-24 21:30:40 +00:00
|
|
|
precross-%: all
|
|
|
|
$(MAKE) -C $* precross
|
|
|
|
precross: all precross-test precross-lib
|
2014-02-22 17:13:03 +00:00
|
|
|
|
2015-03-24 21:30:40 +00:00
|
|
|
# TODO: generate --server and --client switches from "--with(out)-..." build flags
|
2015-05-09 09:33:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
empty :=
|
|
|
|
space := $(empty) $(empty)
|
|
|
|
comma := ,
|
|
|
|
|
2015-10-09 19:28:57 +00:00
|
|
|
CROSS_LANGS = @MAYBE_CPP@ @MAYBE_C_GLIB@ @MAYBE_JAVA@ @MAYBE_CSHARP@ @MAYBE_PYTHON@ @MAYBE_RUBY@ @MAYBE_HASKELL@ @MAYBE_PERL@ @MAYBE_PHP@ @MAYBE_GO@ @MAYBE_NODEJS@ @MAYBE_DART@
|
2015-05-09 09:33:42 +00:00
|
|
|
CROSS_LANGS_COMMA_SEPARATED = $(subst $(space),$(comma),$(CROSS_LANGS))
|
|
|
|
|
2015-03-29 05:48:48 +00:00
|
|
|
cross: precross
|
2015-05-09 09:33:42 +00:00
|
|
|
$(PYTHON) test/test.py -s --server $(CROSS_LANGS_COMMA_SEPARATED) --client $(CROSS_LANGS_COMMA_SEPARATED)
|
2015-04-11 11:12:35 +00:00
|
|
|
|
2015-04-11 14:01:40 +00:00
|
|
|
TIMES = 1 2 3
|
2015-04-11 11:12:35 +00:00
|
|
|
fail: precross
|
2015-04-11 14:01:40 +00:00
|
|
|
$(PYTHON) test/test.py || true
|
2015-04-11 11:12:35 +00:00
|
|
|
$(PYTHON) test/test.py --update-expected-failures=overwrite
|
2015-04-11 14:01:40 +00:00
|
|
|
$(foreach var,$(TIMES),test/test.py -s || true;test/test.py --update-expected-failures=merge;)
|
2015-03-24 21:30:40 +00:00
|
|
|
|
2014-11-24 10:16:54 +00:00
|
|
|
codespell_skip_files = \
|
2014-12-09 14:26:39 +00:00
|
|
|
*.jar \
|
|
|
|
*.class \
|
|
|
|
*.so \
|
2014-11-24 10:16:54 +00:00
|
|
|
*.a \
|
|
|
|
*.la \
|
|
|
|
*.o \
|
|
|
|
*.p12 \
|
|
|
|
*OCamlMakefile \
|
|
|
|
.keystore \
|
|
|
|
.truststore \
|
|
|
|
CHANGES \
|
|
|
|
config.sub \
|
|
|
|
configure \
|
|
|
|
depcomp \
|
|
|
|
libtool.m4 \
|
|
|
|
output.* \
|
|
|
|
rebar \
|
|
|
|
thrift
|
|
|
|
|
|
|
|
skipped_files = $(subst $(space),$(comma),$(codespell_skip_files))
|
|
|
|
|
|
|
|
style-local:
|
|
|
|
codespell --write-changes --skip=$(skipped_files) --disable-colors
|
|
|
|
|
2011-11-16 12:58:36 +00:00
|
|
|
EXTRA_DIST = \
|
2015-08-25 04:39:29 +00:00
|
|
|
.clang-format \
|
|
|
|
.editorconfig \
|
2014-10-03 18:42:54 +00:00
|
|
|
.travis.yml \
|
2015-08-25 04:39:29 +00:00
|
|
|
appveyor.yml \
|
2014-10-03 18:42:54 +00:00
|
|
|
bower.json \
|
2015-08-25 04:39:29 +00:00
|
|
|
build \
|
|
|
|
CMakeLists.txt \
|
2014-10-03 18:42:54 +00:00
|
|
|
composer.json \
|
|
|
|
contrib \
|
2015-04-30 16:19:06 +00:00
|
|
|
CONTRIBUTING.md \
|
2014-10-03 18:42:54 +00:00
|
|
|
debian \
|
|
|
|
doc \
|
|
|
|
doap.rdf \
|
2015-08-25 04:39:29 +00:00
|
|
|
json-schema.json \
|
2015-02-03 20:45:28 +00:00
|
|
|
package.json \
|
2015-08-25 04:39:29 +00:00
|
|
|
rat_exclude \
|
2014-10-03 18:42:54 +00:00
|
|
|
sonar-project.properties \
|
|
|
|
LICENSE \
|
|
|
|
CHANGES \
|
|
|
|
NOTICE \
|
|
|
|
README.md
|