Code

bindings/Makefile.am: Don't build the Perl bindings automatically.
[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
5 all-local:
6         [ ! -f perl/Makefile ] || ( cd perl && $(MAKE) all )
8 install-exec-local:
9         [ ! -f perl/Makefile ] || ( cd perl && $(MAKE) install )
11 clean-local:
12         [ ! -f perl/Makefile ] || ( cd perl && $(MAKE) realclean )
14 test:
15         [ ! -f perl/Makefile ] || ( cd perl && $(MAKE) test )
17 perl: perl-bindings
19 perl-bindings: perl/Makefile
20         cd perl && $(MAKE)
22 perl/Makefile: perl/Makefile.PL $(top_builddir)/config.status
23         if test ! -d perl; then \
24                 for file in $(EXTRA_DIST); do \
25                         mkdir -p `dirname $$file`; \
26                         cp $(srcdir)/$$file `dirname $$file`; \
27                 done \
28         fi
29         
30         cd perl && @PERL@ Makefile.PL PREFIX=$(prefix) @PERL_BINDINGS_OPTIONS@
33 .PHONY: perl perl-bindings