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 | # |
Roger Meier | 81a1f99 | 2014-10-22 14:09:43 +0200 | [diff] [blame] | 19 | AUTOMAKE_OPTIONS = serial-tests |
Aditya Agarwal | 99e2c07 | 2007-07-31 01:36:08 +0000 | [diff] [blame] | 20 | DESTDIR ?= / |
Mark Slee | 5299a95 | 2007-10-05 00:13:24 +0000 | [diff] [blame] | 21 | |
Nobuaki Sukegawa | a185d7e | 2015-11-06 21:24:24 +0900 | [diff] [blame] | 22 | if WITH_PY3 |
| 23 | py3-build: |
| 24 | $(PYTHON3) setup.py build |
Nobuaki Sukegawa | 7f404fd | 2015-11-14 17:05:42 +0900 | [diff] [blame] | 25 | py3-test: py3-build |
Nobuaki Sukegawa | ad83586 | 2015-12-23 23:32:09 +0900 | [diff] [blame] | 26 | $(PYTHON3) test/thrift_json.py |
Zezeng Wang | 3938169 | 2020-04-28 14:24:58 +0800 | [diff] [blame] | 27 | $(PYTHON3) test/thrift_transport.py |
Nobuaki Sukegawa | ad83586 | 2015-12-23 23:32:09 +0900 | [diff] [blame] | 28 | $(PYTHON3) test/test_sslsocket.py |
Zezeng Wang | c372812 | 2020-04-27 15:48:19 +0800 | [diff] [blame] | 29 | $(PYTHON3) test/thrift_TBinaryProtocol.py |
zeshuai007 | bbc5e06 | 2020-05-07 17:10:32 +0800 | [diff] [blame] | 30 | $(PYTHON3) test/thrift_TZlibTransport.py |
zeshuai007 | 26e6c84 | 2020-05-06 14:37:43 +0800 | [diff] [blame] | 31 | $(PYTHON3) test/thrift_TCompactProtocol.py |
zeshuai007 | 797fe25 | 2020-05-20 15:20:07 +0800 | [diff] [blame] | 32 | $(PYTHON3) test/thrift_TNonblockingServer.py |
Ali-Akber Saifee | b724787 | 2021-12-11 08:39:24 -0800 | [diff] [blame] | 33 | $(PYTHON3) test/thrift_TSerializer.py |
Nobuaki Sukegawa | a185d7e | 2015-11-06 21:24:24 +0900 | [diff] [blame] | 34 | else |
| 35 | py3-build: |
Nobuaki Sukegawa | 7f404fd | 2015-11-14 17:05:42 +0900 | [diff] [blame] | 36 | py3-test: |
Nobuaki Sukegawa | a185d7e | 2015-11-06 21:24:24 +0900 | [diff] [blame] | 37 | endif |
| 38 | |
Nobuaki Sukegawa | 7f404fd | 2015-11-14 17:05:42 +0900 | [diff] [blame] | 39 | all-local: py3-build |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 40 | $(PYTHON) setup.py build |
zeshuai007 | 797fe25 | 2020-05-20 15:20:07 +0800 | [diff] [blame] | 41 | ${THRIFT} --gen py test/test_thrift_file/TestServer.thrift |
Aditya Agarwal | 99e2c07 | 2007-07-31 01:36:08 +0000 | [diff] [blame] | 42 | |
David Reiss | aea19c9 | 2007-08-29 23:17:32 +0000 | [diff] [blame] | 43 | # We're ignoring prefix here because site-packages seems to be |
| 44 | # the equivalent of /usr/local/lib in Python land. |
| 45 | # Old version (can't put inline because it's not portable). |
| 46 | #$(PYTHON) setup.py install --prefix=$(prefix) --root=$(DESTDIR) $(PYTHON_SETUPUTIL_ARGS) |
Marc Slemko | d95abdd | 2007-01-16 22:20:19 +0000 | [diff] [blame] | 47 | install-exec-hook: |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 48 | $(PYTHON) setup.py install --root=$(DESTDIR) --prefix=$(PY_PREFIX) $(PYTHON_SETUPUTIL_ARGS) |
David Reiss | b72d19f | 2007-09-18 19:46:00 +0000 | [diff] [blame] | 49 | |
Nobuaki Sukegawa | 7f404fd | 2015-11-14 17:05:42 +0900 | [diff] [blame] | 50 | check-local: all py3-test |
Nobuaki Sukegawa | ad83586 | 2015-12-23 23:32:09 +0900 | [diff] [blame] | 51 | $(PYTHON) test/thrift_json.py |
Zezeng Wang | 3938169 | 2020-04-28 14:24:58 +0800 | [diff] [blame] | 52 | $(PYTHON) test/thrift_transport.py |
Nobuaki Sukegawa | ad83586 | 2015-12-23 23:32:09 +0900 | [diff] [blame] | 53 | $(PYTHON) test/test_sslsocket.py |
Neil Williams | 01d53f4 | 2020-07-07 07:27:29 -0700 | [diff] [blame] | 54 | $(PYTHON) test/test_socket.py |
Zezeng Wang | c372812 | 2020-04-27 15:48:19 +0800 | [diff] [blame] | 55 | $(PYTHON) test/thrift_TBinaryProtocol.py |
zeshuai007 | bbc5e06 | 2020-05-07 17:10:32 +0800 | [diff] [blame] | 56 | $(PYTHON) test/thrift_TZlibTransport.py |
zeshuai007 | 26e6c84 | 2020-05-06 14:37:43 +0800 | [diff] [blame] | 57 | $(PYTHON) test/thrift_TCompactProtocol.py |
zeshuai007 | 797fe25 | 2020-05-20 15:20:07 +0800 | [diff] [blame] | 58 | $(PYTHON) test/thrift_TNonblockingServer.py |
Ali-Akber Saifee | b724787 | 2021-12-11 08:39:24 -0800 | [diff] [blame] | 59 | $(PYTHON) test/thrift_TSerializer.py |
zeshuai007 | 26e6c84 | 2020-05-06 14:37:43 +0800 | [diff] [blame] | 60 | |
jfarrell | 8fd8c63 | 2014-07-10 09:14:51 -0400 | [diff] [blame] | 61 | |
James E. King III | b96c438 | 2019-01-24 17:45:07 -0500 | [diff] [blame] | 62 | clean-local: |
| 63 | $(RM) -r build |
zeshuai007 | 797fe25 | 2020-05-20 15:20:07 +0800 | [diff] [blame] | 64 | $(RM) -r gen-py |
James E. King III | b96c438 | 2019-01-24 17:45:07 -0500 | [diff] [blame] | 65 | find . -type f \( -iname "*.pyc" \) | xargs rm -f |
| 66 | find . -type d \( -iname "__pycache__" -or -iname "_trial_temp" \) | xargs rm -rf |
| 67 | |
| 68 | dist-hook: |
| 69 | find $(distdir) -type f \( -iname "*.pyc" \) | xargs rm -f |
| 70 | find $(distdir) -type d \( -iname "__pycache__" -or -iname "_trial_temp" \) | xargs rm -rf |
| 71 | |
jfarrell | 8fd8c63 | 2014-07-10 09:14:51 -0400 | [diff] [blame] | 72 | EXTRA_DIST = \ |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 73 | CMakeLists.txt \ |
Jens Geyer | f3a2974 | 2017-11-30 22:30:03 +0100 | [diff] [blame] | 74 | MANIFEST.in \ |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 75 | coding_standards.md \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 76 | compat \ |
| 77 | setup.py \ |
| 78 | setup.cfg \ |
| 79 | src \ |
Nobuaki Sukegawa | e134cbc | 2016-03-18 15:13:36 +0900 | [diff] [blame] | 80 | test \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 81 | README.md |