From 080f3033b73978a44fa66b856f69077fd57f16bd Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 22 Aug 2008 09:47:14 +0200 Subject: [PATCH] bindings/Makefile.am: Don't build the Perl bindings automatically. To build the Perl bindings, do: $ cd bindings; make perl install --- README | 11 +++++++++++ bindings/Makefile.am | 7 +++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/README b/README index 7d2e8d4..49b245e 100644 --- a/README +++ b/README @@ -20,6 +20,17 @@ Features * Object oriented interface. +Perl bindings +------------- + + Included in the source package of liboping are bindings for Perl. The code + resides in the bindings/ subdirectory but is not compiled and installed by + default. The problem is that before linking with the library, the library + must be installed. + + If you want to build the Perl bindings compile and install liboping first. + Then go into the bindings/ directory and type + $ make perl install Author ------ diff --git a/bindings/Makefile.am b/bindings/Makefile.am index 498b7f6..2378c74 100644 --- a/bindings/Makefile.am +++ b/bindings/Makefile.am @@ -2,7 +2,8 @@ EXTRA_DIST = perl/Changes perl/MANIFEST perl/META.yml perl/Makefile.PL \ perl/Oping.xs perl/README perl/lib/Net/Oping.pm perl/t/Oping.t \ perl/typemap -all-local: @BINDINGS@ +all-local: + [ ! -f perl/Makefile ] || ( cd perl && $(MAKE) all ) install-exec-local: [ ! -f perl/Makefile ] || ( cd perl && $(MAKE) install ) @@ -13,6 +14,8 @@ clean-local: test: [ ! -f perl/Makefile ] || ( cd perl && $(MAKE) test ) +perl: perl-bindings + perl-bindings: perl/Makefile cd perl && $(MAKE) @@ -27,5 +30,5 @@ perl/Makefile: perl/Makefile.PL $(top_builddir)/config.status cd perl && @PERL@ Makefile.PL PREFIX=$(prefix) @PERL_BINDINGS_OPTIONS@ -.PHONY: perl-bindings +.PHONY: perl perl-bindings -- 2.30.2