Mark Slee | 5b74307 | 2007-11-13 04:00:29 +0000 | [diff] [blame] | 1 | # |
David Reiss | ea2cba8 | 2009-03-30 21:35:00 +0000 | [diff] [blame] | 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 | # |
Mark Slee | 6e53644 | 2006-06-30 18:28:50 +0000 | [diff] [blame] | 19 | |
Mark Slee | 6e53644 | 2006-06-30 18:28:50 +0000 | [diff] [blame] | 20 | stubs: ../ThriftTest.thrift |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 21 | $(THRIFT) --gen php ../ThriftTest.thrift |
| 22 | $(THRIFT) --gen php:inlined ../ThriftTest.thrift |
Andreas Scheja | d1ceba4 | 2016-05-15 21:49:04 +0200 | [diff] [blame] | 23 | $(MKDIR_P) gen-php-psr4 |
| 24 | $(THRIFT) -out gen-php-psr4 --gen php:psr4 ../ThriftTest.thrift |
Mark Slee | 6e53644 | 2006-06-30 18:28:50 +0000 | [diff] [blame] | 25 | |
Håkon Hitland | 9462edb | 2017-07-25 16:38:26 +0200 | [diff] [blame] | 26 | php_ext_dir: |
| 27 | mkdir -p php_ext_dir |
| 28 | ln -s ../../../lib/php/src/ext/thrift_protocol/modules/thrift_protocol.so php_ext_dir/ |
| 29 | ln -s "$$(php-config --extension-dir)/sockets.so" php_ext_dir/ |
Roger Meier | 41ad434 | 2015-03-24 22:30:40 +0100 | [diff] [blame] | 30 | |
Håkon Hitland | 9462edb | 2017-07-25 16:38:26 +0200 | [diff] [blame] | 31 | precross: stubs php_ext_dir |
| 32 | |
| 33 | check: stubs php_ext_dir |
Roger Meier | b33967b | 2012-01-21 09:18:05 +0000 | [diff] [blame] | 34 | |
| 35 | clean-local: |
Håkon Hitland | 9462edb | 2017-07-25 16:38:26 +0200 | [diff] [blame] | 36 | $(RM) -r gen-php gen-phpi gen-php-psr4 php_ext_dir |
Roger Meier | b33967b | 2012-01-21 09:18:05 +0000 | [diff] [blame] | 37 | |
Håkon Hitland | 9462edb | 2017-07-25 16:38:26 +0200 | [diff] [blame] | 38 | client: stubs php_ext_dir |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 39 | php TestClient.php |