X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=bindings%2FMakefile.am;h=0c1c6609b9292f54a3bf68c02802c2578a4feae0;hb=115b04b76bb1d127c1de9cdacce717cfc0528b16;hp=498b7f6ee416d83d12e3179723a7acc5e9d62a6c;hpb=5d612eb3a73c70308ce2e2af448a26e9a45955c6;p=liboping.git diff --git a/bindings/Makefile.am b/bindings/Makefile.am index 498b7f6..0c1c660 100644 --- a/bindings/Makefile.am +++ b/bindings/Makefile.am @@ -3,6 +3,7 @@ EXTRA_DIST = perl/Changes perl/MANIFEST perl/META.yml perl/Makefile.PL \ perl/typemap all-local: @BINDINGS@ + [ ! -f perl/Makefile ] || ( cd perl && $(MAKE) all ) install-exec-local: [ ! -f perl/Makefile ] || ( cd perl && $(MAKE) install ) @@ -13,9 +14,13 @@ clean-local: test: [ ! -f perl/Makefile ] || ( cd perl && $(MAKE) test ) +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 \ @@ -23,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-bindings +.PHONY: perl perl-bindings