| 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: | 
| Nobuaki Sukegawa | 25536ad | 2016-02-04 15:08:55 +0900 | [diff] [blame] | 24 | 	$(PIP3) install -r requirements.txt || $(PIP3) install --user -r requirements.txt | 
| Nobuaki Sukegawa | a185d7e | 2015-11-06 21:24:24 +0900 | [diff] [blame] | 25 | 	$(PYTHON3) setup.py build | 
| Nobuaki Sukegawa | 7f404fd | 2015-11-14 17:05:42 +0900 | [diff] [blame] | 26 | py3-test: py3-build | 
| Nobuaki Sukegawa | ad83586 | 2015-12-23 23:32:09 +0900 | [diff] [blame] | 27 | 	$(PYTHON3) test/thrift_json.py | 
 | 28 | 	$(PYTHON3) test/test_sslsocket.py | 
| Nobuaki Sukegawa | a185d7e | 2015-11-06 21:24:24 +0900 | [diff] [blame] | 29 | else | 
 | 30 | py3-build: | 
| Nobuaki Sukegawa | 7f404fd | 2015-11-14 17:05:42 +0900 | [diff] [blame] | 31 | py3-test: | 
| Nobuaki Sukegawa | a185d7e | 2015-11-06 21:24:24 +0900 | [diff] [blame] | 32 | endif | 
 | 33 |  | 
| Nobuaki Sukegawa | 7f404fd | 2015-11-14 17:05:42 +0900 | [diff] [blame] | 34 | all-local: py3-build | 
| Nobuaki Sukegawa | 25536ad | 2016-02-04 15:08:55 +0900 | [diff] [blame] | 35 | 	$(PIP) install -r requirements.txt || $(PIP) install --user -r requirements.txt | 
| Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 36 | 	$(PYTHON) setup.py build | 
| Aditya Agarwal | 99e2c07 | 2007-07-31 01:36:08 +0000 | [diff] [blame] | 37 |  | 
| David Reiss | aea19c9 | 2007-08-29 23:17:32 +0000 | [diff] [blame] | 38 | # We're ignoring prefix here because site-packages seems to be | 
 | 39 | # the equivalent of /usr/local/lib in Python land. | 
 | 40 | # Old version (can't put inline because it's not portable). | 
 | 41 | #$(PYTHON) setup.py install --prefix=$(prefix) --root=$(DESTDIR) $(PYTHON_SETUPUTIL_ARGS) | 
| Marc Slemko | d95abdd | 2007-01-16 22:20:19 +0000 | [diff] [blame] | 42 | install-exec-hook: | 
| Nobuaki Sukegawa | 25536ad | 2016-02-04 15:08:55 +0900 | [diff] [blame] | 43 | 	$(PIP) install -r requirements.txt | 
| Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 44 | 	$(PYTHON) setup.py install --root=$(DESTDIR) --prefix=$(PY_PREFIX) $(PYTHON_SETUPUTIL_ARGS) | 
| David Reiss | b72d19f | 2007-09-18 19:46:00 +0000 | [diff] [blame] | 45 |  | 
| David Reiss | 2ca456a | 2008-02-24 16:42:18 +0000 | [diff] [blame] | 46 | clean-local: | 
| Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 47 | 	$(RM) -r build | 
| Mark Slee | 5299a95 | 2007-10-05 00:13:24 +0000 | [diff] [blame] | 48 |  | 
| Nobuaki Sukegawa | 7f404fd | 2015-11-14 17:05:42 +0900 | [diff] [blame] | 49 | check-local: all py3-test | 
| Nobuaki Sukegawa | ad83586 | 2015-12-23 23:32:09 +0900 | [diff] [blame] | 50 | 	$(PYTHON) test/thrift_json.py | 
 | 51 | 	$(PYTHON) test/test_sslsocket.py | 
| jfarrell | 8fd8c63 | 2014-07-10 09:14:51 -0400 | [diff] [blame] | 52 |  | 
 | 53 | EXTRA_DIST = \ | 
| jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 54 | 	CMakeLists.txt \ | 
 | 55 | 	coding_standards.md \ | 
| Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 56 | 	compat \ | 
| Nobuaki Sukegawa | 356c998 | 2016-03-09 10:35:37 +0900 | [diff] [blame] | 57 | 	requirements.txt \ | 
| Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 58 | 	setup.py \ | 
 | 59 | 	setup.cfg \ | 
 | 60 | 	src \ | 
| Nobuaki Sukegawa | e134cbc | 2016-03-18 15:13:36 +0900 | [diff] [blame] | 61 | 	test \ | 
| Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 62 | 	README.md |