Bump version to 1.10.0; Update ChangeLog.
[liboping.git] / bindings / Makefile.am
1 EXTRA_DIST = perl/Changes perl/MANIFEST perl/META.yml perl/Makefile.PL \
2                 perl/Oping.xs perl/README perl/lib/Net/Oping.pm perl/t/Oping.t \
3                 perl/typemap
4
5 all-local: @BINDINGS@
6         [ ! -f perl/Makefile ] || ( cd perl && $(MAKE) all )
7
8 install-exec-local:
9         [ ! -f perl/Makefile ] || ( cd perl && $(MAKE) install )
10
11 clean-local:
12         [ ! -f perl/Makefile ] || ( cd perl && $(MAKE) realclean )
13
14 test:
15         [ ! -f perl/Makefile ] || ( cd perl && $(MAKE) test )
16
17 perl: perl-bindings
18
19 perl-bindings: perl/Makefile
20         cd perl && $(MAKE)
21
22 # Check if the `perl' directory exists in the _build_ directory. If not, copy
23 # the files from the _source_ directory.
24 perl/Makefile: perl/Makefile.PL $(top_builddir)/config.status
25         if test ! -d perl; then \
26                 for file in $(EXTRA_DIST); do \
27                         mkdir -p `dirname $$file`; \
28                         cp $(srcdir)/$$file `dirname $$file`; \
29                 done \
30         fi
31         cd perl && @PERL@ Makefile.PL PREFIX="$(prefix)" TOP_BUILDDIR="$(top_builddir)" TARGET_LIBDIR="$(libdir)" @PERL_BINDINGS_OPTIONS@
32
33 .PHONY: perl perl-bindings
34