diff options
author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-02-01 00:16:21 +0000 |
---|---|---|
committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-02-01 00:16:21 +0000 |
commit | 2348566c2a6cec389b0ae99b3ac061c6d13a58b2 (patch) | |
tree | ca73449e58a09ffe0da601b4619ec4e03656a91f /bindings/perl | |
parent | a8783e7d9a5593b0db1c4a5961807a26426b9b50 (diff) | |
download | lasso-2348566c2a6cec389b0ae99b3ac061c6d13a58b2.tar.gz lasso-2348566c2a6cec389b0ae99b3ac061c6d13a58b2.tar.xz lasso-2348566c2a6cec389b0ae99b3ac061c6d13a58b2.zip |
Bindings: make binding generation more silent
* bindings/java/Makefile.am bindings/perl/Makefile.am
bindings/php5/Makefile.am bindings/python/Makefile.am:
use AM_V_GEN, or similar variable for all steps of binding
generation, normal output can be activated with the V=1 argument to
the 'make' command.
Diffstat (limited to 'bindings/perl')
-rw-r--r-- | bindings/perl/Makefile.am | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/bindings/perl/Makefile.am b/bindings/perl/Makefile.am index 01df8c09..9043b86a 100644 --- a/bindings/perl/Makefile.am +++ b/bindings/perl/Makefile.am @@ -12,7 +12,7 @@ INCLUDES = \ -I$(top_srcdir) \ $(SASL_CFLAGS) -all: Lasso.so +all: blib/arch/auto/Lasso/Lasso.so Lasso.pm TOCOPY=gobject_handling.c glist_handling.c ghashtable_handling.c Makefile.PL \ LassoNode.xs test.pl t @@ -25,31 +25,33 @@ endif # Copy if out of a build Makefile.perl: $(srcdir)/Makefile.PL Lasso.xs Lasso.pm - -if [ "$(srcdir)" != "$(builddir)" ]; then \ + $(AM_V_GEN) if [ "$(srcdir)" != "$(builddir)" ]; then \ for file in $(TOCOPY); do \ - cp -Rf $(srcdir)/$$file .; \ + if [ $(srcdir)/$$file -nt $$file ]; then cp -Rf $(srcdir)/$$file .; fi; \ done; \ chmod -R u+rwX $(TOCOPY); \ - fi - $(PERL) Makefile.PL PREFIX=$(prefix) CCFLAGS="$(LASSO_XS_CFLAGS)" INC="-I. -I$(top_srcdir)" LIBS="`$(top_builddir)/lasso-src-config --libs`" + fi; \ + LOG=`mktemp`; ( $(PERL) Makefile.PL PREFIX=$(prefix) CCFLAGS="$(LASSO_XS_CFLAGS)" INC="-I. -I$(top_srcdir)" LIBS="`$(top_builddir)/lasso-src-config --libs`" 2>&1 >$$LOG && rm $$LOG ) || ( cat $$LOG; rm $$LOG ) Lasso.xs Lasso.pm: lang.py typemap-in typemap-out - $(PYTHON) $(top_srcdir)/bindings/bindings.py -l perl --src-dir=$(top_srcdir)/lasso/ $(EXTRA_ARGS) + $(AM_V_GEN) $(PYTHON) $(top_srcdir)/bindings/bindings.py -l perl --src-dir=$(top_srcdir)/lasso/ $(EXTRA_ARGS) -Lasso.so: Lasso.xs Lasso.pm Makefile.perl gobject_handling.c LassoNode.xs glist_handling.c - make -f Makefile.perl +blib/arch/auto/Lasso/Lasso.so: Lasso.xs Lasso.pm Makefile.perl gobject_handling.c LassoNode.xs glist_handling.c + $(AM_V_GEN) LOG=`mktemp`; (make -f Makefile.perl 2>&1 >$$LOG && rm $$LOG ) || ( cat $$LOG; rm $$LOG ) -CLEANFILES = Lasso.pm Lasso.xs Lasso.so typemap Lasso.o Lasso.bs pm_to_blib Lasso.c blib +CLEANFILES = Lasso.pm Lasso.xs Lasso.so typemap Lasso.o Lasso.bs pm_to_blib Lasso.c + +DISTCLEANFILES = $(TOCOPY) +distclean-local: + -@rm -rf $(TOCOPY) clean-local: - -@make -f Makefile.perl clean - -@rm -f Makefile.perl - -if [ "$(srcdir)" != "$(builddir)" ]; then rm -rf `find -H -mindepth 1 -not -name Makefile` t; fi + -@if [ -f Makefile.perl ]; then make -f Makefile.perl clean; fi; rm -f Makefile.perl install-exec-local: make -f Makefile.perl install DESTDIR=$(DESTDIR) PREFIX=$(prefix) uninstall-local: - @rm -rf `find $(DESTDIR)$(prefix) -name Lasso.pm -or -name Lasso.so -or -name Lasso.bs -or -name .packlist -or -name perllocal.pod` + -@rm -rf `find $(DESTDIR)$(prefix) -name Lasso.pm -or -name Lasso.so -or -name Lasso.bs -or -name .packlist -or -name perllocal.pod` endif |