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: @BINDINGS@
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 # 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@
33 .PHONY: perl perl-bindings