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 |
Robert Lu | 68707d9 | 2018-01-17 19:40:39 +0800 | [diff] [blame] | 23 | $(MKDIR_P) gen-php-classmap |
Kengo Seki | caf8904 | 2019-10-09 06:57:53 +0900 | [diff] [blame] | 24 | $(THRIFT) -out gen-php-classmap --gen php:classmap ../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/ |
James E. King III | e53d23c | 2019-02-10 11:13:23 -0500 | [diff] [blame] | 29 | ln -s "$$(php-config --extension-dir)/json.so" php_ext_dir/ |
Håkon Hitland | 9462edb | 2017-07-25 16:38:26 +0200 | [diff] [blame] | 30 | ln -s "$$(php-config --extension-dir)/sockets.so" php_ext_dir/ |
Roger Meier | 41ad434 | 2015-03-24 22:30:40 +0100 | [diff] [blame] | 31 | |
Håkon Hitland | 9462edb | 2017-07-25 16:38:26 +0200 | [diff] [blame] | 32 | precross: stubs php_ext_dir |
| 33 | |
| 34 | check: stubs php_ext_dir |
Roger Meier | b33967b | 2012-01-21 09:18:05 +0000 | [diff] [blame] | 35 | |
| 36 | clean-local: |
James E. King III | b96c438 | 2019-01-24 17:45:07 -0500 | [diff] [blame] | 37 | $(RM) -r gen-*/ |
| 38 | $(RM) -r php_ext_dir |
| 39 | |
| 40 | dist-hook: |
| 41 | $(RM) -r $(distdir)/gen-*/ |
| 42 | $(RM) -r $(distdir)/php_ext_dir/ |
Roger Meier | b33967b | 2012-01-21 09:18:05 +0000 | [diff] [blame] | 43 | |
Håkon Hitland | 9462edb | 2017-07-25 16:38:26 +0200 | [diff] [blame] | 44 | client: stubs php_ext_dir |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 45 | php TestClient.php |