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