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