summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ec9ecd4)
raw | patch | inline | side by side (parent: ec9ecd4)
author | Florian Forster <octo@verplant.org> | |
Fri, 22 Aug 2008 07:47:14 +0000 (09:47 +0200) | ||
committer | Florian 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
$ cd bindings; make perl install
README | patch | blob | history | |
bindings/Makefile.am | patch | blob | history |
index 7d2e8d46c53de08cbca78cd954cf569fb9afb9be..49b245e1b950849880abf64db95850c38a4a2737 100644 (file)
--- a/README
+++ b/README
* 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 498b7f6ee416d83d12e3179723a7acc5e9d62a6c..2378c7482a8383cf27672f56665afe7cf5375541 100644 (file)
--- a/bindings/Makefile.am
+++ b/bindings/Makefile.am
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 )
test:
[ ! -f perl/Makefile ] || ( cd perl && $(MAKE) test )
+perl: perl-bindings
+
perl-bindings: perl/Makefile
cd perl && $(MAKE)
cd perl && @PERL@ Makefile.PL PREFIX=$(prefix) @PERL_BINDINGS_OPTIONS@
-.PHONY: perl-bindings
+.PHONY: perl perl-bindings