Code

bindings/Makefile.am: Don't build the Perl bindings automatically.
authorFlorian Forster <octo@verplant.org>
Fri, 22 Aug 2008 07:47:14 +0000 (09:47 +0200)
committerFlorian Forster <octo@verplant.org>
Fri, 22 Aug 2008 07:47:14 +0000 (09:47 +0200)
To build the Perl bindings, do:
  $ cd bindings; make perl install

README
bindings/Makefile.am

diff --git a/README b/README
index 7d2e8d46c53de08cbca78cd954cf569fb9afb9be..49b245e1b950849880abf64db95850c38a4a2737 100644 (file)
--- 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
 ------
index 498b7f6ee416d83d12e3179723a7acc5e9d62a6c..2378c7482a8383cf27672f56665afe7cf5375541 100644 (file)
@@ -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