Roger Meier | 33b720a | 2012-01-24 18:42:46 +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 | # |
| 19 | |
Robert Lu | a15060a | 2017-12-28 15:29:39 +0800 | [diff] [blame] | 20 | PHPUNIT=php $(top_srcdir)/vendor/bin/phpunit |
| 21 | |
Volodymyr Panivko | 8e828c0 | 2024-02-19 11:34:48 +0100 | [diff] [blame] | 22 | stubs: Resources/ThriftTest.thrift |
| 23 | mkdir -p ./Resources/packages/php |
| 24 | mkdir -p ./Resources/packages/phpv |
| 25 | mkdir -p ./Resources/packages/phpvo |
| 26 | mkdir -p ./Resources/packages/phpjs |
Volodymyr Panivko | 14fc2be | 2024-02-22 18:17:40 +0100 | [diff] [blame] | 27 | mkdir -p ./Resources/packages/phpcm |
Volodymyr Panivko | 68139d1 | 2024-03-19 23:14:07 +0100 | [diff] [blame] | 28 | $(THRIFT) --gen php:nsglobal="Basic" -r --out ./Resources/packages/php Resources/ThriftTest.thrift |
| 29 | $(THRIFT) --gen php:validate,nsglobal="Validate" -r --out ./Resources/packages/phpv Resources/ThriftTest.thrift |
| 30 | $(THRIFT) --gen php:validate,oop,nsglobal="ValidateOop" -r --out ./Resources/packages/phpvo Resources/ThriftTest.thrift |
| 31 | $(THRIFT) --gen php:json,nsglobal="Json" -r --out ./Resources/packages/phpjs Resources/ThriftTest.thrift |
| 32 | $(THRIFT) --gen php:classmap,server,rest,nsglobal="Classmap" -r --out ./Resources/packages/phpcm Resources/ThriftTest.thrift |
Roger Meier | 964082a | 2014-10-08 23:28:09 +0200 | [diff] [blame] | 33 | |
Robert Lu | a15060a | 2017-12-28 15:29:39 +0800 | [diff] [blame] | 34 | deps: $(top_srcdir)/composer.json |
| 35 | composer install --working-dir=$(top_srcdir) |
Roger Meier | 964082a | 2014-10-08 23:28:09 +0200 | [diff] [blame] | 36 | |
Robert Lu | a15060a | 2017-12-28 15:29:39 +0800 | [diff] [blame] | 37 | all-local: deps |
| 38 | |
Volodymyr Panivko | 8e828c0 | 2024-02-19 11:34:48 +0100 | [diff] [blame] | 39 | check: deps stubs |
| 40 | $(PHPUNIT) --log-junit=test-log-junit.xml -c phpunit.xml / |
Roger Meier | 33b720a | 2012-01-24 18:42:46 +0000 | [diff] [blame] | 41 | |
James E. King III | b96c438 | 2019-01-24 17:45:07 -0500 | [diff] [blame] | 42 | distclean-local: |
| 43 | |
Thomas | 63f0458 | 2024-03-21 22:51:07 +0900 | [diff] [blame] | 44 | distdir: |
| 45 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
| 46 | |
Roger Meier | 33b720a | 2012-01-24 18:42:46 +0000 | [diff] [blame] | 47 | clean-local: |
Volodymyr Panivko | 8e828c0 | 2024-02-19 11:34:48 +0100 | [diff] [blame] | 48 | $(RM) -r ./Resources/packages |
| 49 | $(RM) test-log-junit.xml |