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 | # |
| 19 | |
James E. King III | bbc1377 | 2019-01-14 12:07:10 -0500 | [diff] [blame] | 20 | SUBDIRS = t |
T Jake Luciani | 1952e54 | 2009-02-01 04:47:30 +0000 | [diff] [blame] | 21 | |
| 22 | Makefile-perl.mk : Makefile.PL |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 23 | $(PERL) Makefile.PL MAKEFILE=Makefile-perl.mk INSTALLDIRS=$(INSTALLDIRS) INSTALL_BASE=$(PERL_PREFIX) |
T Jake Luciani | 1952e54 | 2009-02-01 04:47:30 +0000 | [diff] [blame] | 24 | |
| 25 | all-local: Makefile-perl.mk |
Nobuaki Sukegawa | 33331a3 | 2016-03-10 09:26:53 +0900 | [diff] [blame] | 26 | $(MAKE) -f $< |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 27 | find blib -name 'Makefile*' -exec rm -f {} \; |
T Jake Luciani | 1952e54 | 2009-02-01 04:47:30 +0000 | [diff] [blame] | 28 | |
T Jake Luciani | 1952e54 | 2009-02-01 04:47:30 +0000 | [diff] [blame] | 29 | install-exec-local: Makefile-perl.mk |
Nobuaki Sukegawa | 33331a3 | 2016-03-10 09:26:53 +0900 | [diff] [blame] | 30 | $(MAKE) -f $< install DESTDIR=$(DESTDIR)/ |
T Jake Luciani | 1952e54 | 2009-02-01 04:47:30 +0000 | [diff] [blame] | 31 | |
David Reiss | 067c9af | 2009-02-11 01:11:54 +0000 | [diff] [blame] | 32 | clean-local: |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 33 | if test -f Makefile-perl.mk ; then \ |
| 34 | $(MAKE) -f Makefile-perl.mk clean ; \ |
| 35 | fi |
Nobuaki Sukegawa | 33331a3 | 2016-03-10 09:26:53 +0900 | [diff] [blame] | 36 | $(RM) Makefile-perl.mk.old |
| 37 | $(RM) -r gen-perl gen-perl2 |
T Jake Luciani | 1952e54 | 2009-02-01 04:47:30 +0000 | [diff] [blame] | 38 | |
David Reiss | 48141bf | 2009-03-18 23:59:56 +0000 | [diff] [blame] | 39 | EXTRA_DIST = \ |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 40 | coding_standards.md \ |
Jens Geyer | f3a2974 | 2017-11-30 22:30:03 +0100 | [diff] [blame] | 41 | build-cpan-dist.sh \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 42 | Makefile.PL \ |
Jens Geyer | 8411e18 | 2021-02-04 22:41:50 +0100 | [diff] [blame^] | 43 | MANIFEST.SKIP \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 44 | test.pl \ |
| 45 | lib/Thrift.pm \ |
| 46 | lib/Thrift.pm \ |
| 47 | lib/Thrift/BinaryProtocol.pm \ |
| 48 | lib/Thrift/BufferedTransport.pm \ |
Jens Geyer | f3a2974 | 2017-11-30 22:30:03 +0100 | [diff] [blame] | 49 | lib/Thrift/Exception.pm \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 50 | lib/Thrift/FramedTransport.pm \ |
| 51 | lib/Thrift/HttpClient.pm \ |
| 52 | lib/Thrift/MemoryBuffer.pm \ |
Jens Geyer | c214572 | 2015-04-02 22:54:02 +0200 | [diff] [blame] | 53 | lib/Thrift/MessageType.pm \ |
| 54 | lib/Thrift/MultiplexedProcessor.pm \ |
| 55 | lib/Thrift/MultiplexedProtocol.pm \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 56 | lib/Thrift/Protocol.pm \ |
Jens Geyer | c214572 | 2015-04-02 22:54:02 +0200 | [diff] [blame] | 57 | lib/Thrift/ProtocolDecorator.pm \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 58 | lib/Thrift/Server.pm \ |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 59 | lib/Thrift/ServerSocket.pm \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 60 | lib/Thrift/Socket.pm \ |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 61 | lib/Thrift/SSLSocket.pm \ |
| 62 | lib/Thrift/SSLServerSocket.pm \ |
Nobuaki Sukegawa | 834f1b4 | 2016-03-19 22:31:40 +0900 | [diff] [blame] | 63 | lib/Thrift/UnixServerSocket.pm \ |
| 64 | lib/Thrift/UnixSocket.pm \ |
Jens Geyer | f3a2974 | 2017-11-30 22:30:03 +0100 | [diff] [blame] | 65 | lib/Thrift/Type.pm \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 66 | lib/Thrift/Transport.pm \ |
Jens Geyer | 8411e18 | 2021-02-04 22:41:50 +0100 | [diff] [blame^] | 67 | tools/FixupDist.pl \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 68 | README.md |
Nobuaki Sukegawa | 33331a3 | 2016-03-10 09:26:53 +0900 | [diff] [blame] | 69 | |
| 70 | THRIFT = @top_builddir@/compiler/cpp/thrift |
| 71 | THRIFT_IF = @top_srcdir@/test/ThriftTest.thrift |
| 72 | NAME_BENCHMARKSERVICE = @top_srcdir@/lib/rb/benchmark/Benchmark.thrift |
| 73 | NAME_AGGR = @top_srcdir@/contrib/async-test/aggr.thrift |
| 74 | |
| 75 | THRIFTTEST_GEN = \ |
| 76 | gen-perl/ThriftTest/Constants.pm \ |
| 77 | gen-perl/ThriftTest/SecondService.pm \ |
| 78 | gen-perl/ThriftTest/ThriftTest.pm \ |
| 79 | gen-perl/ThriftTest/Types.pm |
| 80 | |
| 81 | BENCHMARK_GEN = \ |
| 82 | gen-perl/BenchmarkService.pm \ |
| 83 | gen-perl/Constants.pm \ |
| 84 | gen-perl/Types.pm |
| 85 | |
| 86 | AGGR_GEN = \ |
| 87 | gen-perl2/Aggr.pm \ |
| 88 | gen-perl2/Constants.pm \ |
| 89 | gen-perl2/Types.pm |
| 90 | |
| 91 | PERL_GEN = \ |
| 92 | $(THRIFTTEST_GEN) \ |
| 93 | $(BENCHMARK_GEN) \ |
| 94 | $(AGGR_GEN) |
| 95 | |
| 96 | BUILT_SOURCES = $(PERL_GEN) |
| 97 | |
| 98 | check-local: $(PERL_GEN) |
| 99 | $(PERL) -Iblib/lib -I@abs_srcdir@ -I@builddir@/gen-perl2 -I@builddir@/gen-perl \ |
James E. King III | bbc1377 | 2019-01-14 12:07:10 -0500 | [diff] [blame] | 100 | @abs_srcdir@/test.pl @abs_srcdir@/t/*.t |
Nobuaki Sukegawa | 33331a3 | 2016-03-10 09:26:53 +0900 | [diff] [blame] | 101 | |
| 102 | $(THRIFTTEST_GEN): $(THRIFT_IF) $(THRIFT) |
| 103 | $(THRIFT) --gen perl $< |
| 104 | |
| 105 | $(BENCHMARK_GEN): $(NAME_BENCHMARKSERVICE) $(THRIFT) |
| 106 | $(THRIFT) --gen perl $< |
| 107 | |
| 108 | $(AGGR_GEN): $(NAME_AGGR) $(THRIFT) |
| 109 | $(MKDIR_P) gen-perl2 |
| 110 | $(THRIFT) -out gen-perl2 --gen perl $< |