blob: fd1adf45b094215a335a02364f32e742d6104e54 [file] [log] [blame]
David Reissea2cba82009-03-30 21:35:00 +00001#
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
T Jake Lucianiaac5bd42009-04-20 01:38:42 +000020SUBDIRS =
T Jake Luciani1952e542009-02-01 04:47:30 +000021
22Makefile-perl.mk : Makefile.PL
Kevin Clarkb5c9c542009-03-02 23:29:54 +000023 $(PERL) Makefile.PL MAKEFILE=Makefile-perl.mk INSTALLDIRS=$(INSTALLDIRS)
T Jake Luciani1952e542009-02-01 04:47:30 +000024
25all-local: Makefile-perl.mk
26 $(MAKE) -f Makefile-perl.mk
27 find blib -name 'Makefile*' -exec rm -f {} \;
28
29check-local:
T Jake Lucianiaac5bd42009-04-20 01:38:42 +000030 make -C test
T Jake Luciani1952e542009-02-01 04:47:30 +000031 $(PERL) -Iblib/lib -I@abs_srcdir@ -I@builddir@/test/gen-perl \
32 @abs_srcdir@/test.pl @abs_srcdir@/test/*.t
33
34install-exec-local: Makefile-perl.mk
35 $(MAKE) -f Makefile-perl.mk install DESTDIR=$(DESTDIR)/
36
David Reiss067c9af2009-02-11 01:11:54 +000037clean-local:
38 if test -f Makefile-perl.mk ; then \
39 $(MAKE) -f Makefile-perl.mk clean ; \
40 fi
T Jake Luciani1952e542009-02-01 04:47:30 +000041 rm -f Makefile-perl.mk.old
42
David Reiss48141bf2009-03-18 23:59:56 +000043EXTRA_DIST = \
T Jake Luciani1952e542009-02-01 04:47:30 +000044 Makefile.PL \
45 test.pl \
46 lib/Thrift.pm \
47 lib/Thrift.pm \
48 lib/Thrift/BinaryProtocol.pm \
49 lib/Thrift/BufferedTransport.pm \
50 lib/Thrift/FramedTransport.pm \
51 lib/Thrift/HttpClient.pm \
52 lib/Thrift/MemoryBuffer.pm \
53 lib/Thrift/Protocol.pm \
54 lib/Thrift/Socket.pm \
55 lib/Thrift/Transport.pm