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 | |
David Reiss | 4b86e62 | 2009-05-22 19:52:06 +0000 | [diff] [blame] | 20 | SUBDIRS = test |
T Jake Luciani | 1952e54 | 2009-02-01 04:47:30 +0000 | [diff] [blame] | 21 | |
| 22 | Makefile-perl.mk : Makefile.PL |
David Reiss | c07057e | 2010-06-11 17:57:32 +0000 | [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 |
| 26 | $(MAKE) -f Makefile-perl.mk |
| 27 | find blib -name 'Makefile*' -exec rm -f {} \; |
| 28 | |
| 29 | check-local: |
| 30 | $(PERL) -Iblib/lib -I@abs_srcdir@ -I@builddir@/test/gen-perl \ |
| 31 | @abs_srcdir@/test.pl @abs_srcdir@/test/*.t |
| 32 | |
| 33 | install-exec-local: Makefile-perl.mk |
| 34 | $(MAKE) -f Makefile-perl.mk install DESTDIR=$(DESTDIR)/ |
| 35 | |
David Reiss | 067c9af | 2009-02-11 01:11:54 +0000 | [diff] [blame] | 36 | clean-local: |
| 37 | if test -f Makefile-perl.mk ; then \ |
| 38 | $(MAKE) -f Makefile-perl.mk clean ; \ |
| 39 | fi |
T Jake Luciani | 1952e54 | 2009-02-01 04:47:30 +0000 | [diff] [blame] | 40 | rm -f Makefile-perl.mk.old |
| 41 | |
David Reiss | 48141bf | 2009-03-18 23:59:56 +0000 | [diff] [blame] | 42 | EXTRA_DIST = \ |
T Jake Luciani | 1952e54 | 2009-02-01 04:47:30 +0000 | [diff] [blame] | 43 | Makefile.PL \ |
| 44 | test.pl \ |
| 45 | lib/Thrift.pm \ |
| 46 | lib/Thrift.pm \ |
| 47 | lib/Thrift/BinaryProtocol.pm \ |
| 48 | lib/Thrift/BufferedTransport.pm \ |
| 49 | lib/Thrift/FramedTransport.pm \ |
| 50 | lib/Thrift/HttpClient.pm \ |
| 51 | lib/Thrift/MemoryBuffer.pm \ |
| 52 | lib/Thrift/Protocol.pm \ |
T Jake Luciani | 0c5c234 | 2009-11-12 03:01:33 +0000 | [diff] [blame] | 53 | lib/Thrift/Server.pm \ |
T Jake Luciani | 1952e54 | 2009-02-01 04:47:30 +0000 | [diff] [blame] | 54 | lib/Thrift/Socket.pm \ |
| 55 | lib/Thrift/Transport.pm |