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 \
6 [ ! -f perl/Makefile ] || ( cd perl && $(MAKE) all )
9 [ ! -f perl/Makefile ] || ( cd perl && $(MAKE) install )
12 [ ! -f perl/Makefile ] || ( cd perl && $(MAKE) realclean )
15 [ ! -f perl/Makefile ] || ( cd perl && $(MAKE) test )
19 perl-bindings: perl/Makefile
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`; \
31 cd perl && @PERL@ Makefile.PL PREFIX="$(prefix)" TOP_BUILDDIR="$(top_builddir)" TARGET_LIBDIR="$(libdir)" @PERL_BINDINGS_OPTIONS@
33 .PHONY: perl perl-bindings