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