X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=bindings%2FMakefile.am;h=0c1c6609b9292f54a3bf68c02802c2578a4feae0;hb=9cc4dd5515940662d13590ed2e68bcb2608accc9;hp=2378c7482a8383cf27672f56665afe7cf5375541;hpb=080f3033b73978a44fa66b856f69077fd57f16bd;p=liboping.git diff --git a/bindings/Makefile.am b/bindings/Makefile.am index 2378c74..0c1c660 100644 --- a/bindings/Makefile.am +++ b/bindings/Makefile.am @@ -2,7 +2,7 @@ EXTRA_DIST = perl/Changes perl/MANIFEST perl/META.yml perl/Makefile.PL \ perl/Oping.xs perl/README perl/lib/Net/Oping.pm perl/t/Oping.t \ perl/typemap -all-local: +all-local: @BINDINGS@ [ ! -f perl/Makefile ] || ( cd perl && $(MAKE) all ) install-exec-local: @@ -19,6 +19,8 @@ perl: perl-bindings perl-bindings: perl/Makefile cd perl && $(MAKE) +# Check if the `perl' directory exists in the _build_ directory. If not, copy +# the files from the _source_ directory. perl/Makefile: perl/Makefile.PL $(top_builddir)/config.status if test ! -d perl; then \ for file in $(EXTRA_DIST); do \ @@ -26,9 +28,7 @@ perl/Makefile: perl/Makefile.PL $(top_builddir)/config.status cp $(srcdir)/$$file `dirname $$file`; \ done \ fi - - cd perl && @PERL@ Makefile.PL PREFIX=$(prefix) @PERL_BINDINGS_OPTIONS@ - + cd perl && @PERL@ Makefile.PL PREFIX="$(prefix)" TOP_BUILDDIR="$(top_builddir)" TARGET_LIBDIR="$(libdir)" @PERL_BINDINGS_OPTIONS@ .PHONY: perl perl-bindings