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.
This commit is contained in:
parent
a8783e7d9a
commit
2348566c2a
|
@ -7,6 +7,14 @@ INCLUDES = \
|
|||
CLASSPATH_ENV= CLASSPATH=.:$(CLASSPATH_JUNIT)
|
||||
CLASSPATH=.:tests
|
||||
|
||||
AM_V_JAVAC = $(am__v_JAVAC_$(V))
|
||||
am__v_JAVAC_ = $(am__v_JAVAC_$(AM_DEFAULT_VERBOSITY))
|
||||
am__v_JAVAC_0 = @echo " JAVAC " $@;
|
||||
|
||||
AM_V_JAR = $(am__v_JAR_$(V))
|
||||
am__v_JAR_ = $(am__v_JAR_$(AM_DEFAULT_VERBOSITY))
|
||||
am__v_JAR_0 = @echo " JAR " $@;
|
||||
|
||||
java_extension_LTLIBRARIES = libjnilasso.la
|
||||
java_extensiondir = ${libdir}/java
|
||||
|
||||
|
@ -21,12 +29,12 @@ lasso_jar_DATA=lasso.jar
|
|||
lasso_jar_class_files = $(java_lasso_source_files:.java=.class)
|
||||
|
||||
%.class: %.java
|
||||
$(JAVAC) $(CLASSPATH_OPT) $(CLASSPATH) $(JAVAC_FLAGS) -d . $<
|
||||
$(AM_V_JAVAC) $(JAVAC) $(CLASSPATH_OPT) $(CLASSPATH) $(JAVAC_FLAGS) -d . $<
|
||||
|
||||
all_jar_class_files = $(shell find com/entrouvert/lasso -name '*.class' | sed 's%\$$%\\$$%g')
|
||||
|
||||
lasso.jar: $(java_lasso_source_files:.java=.class)
|
||||
$(JAR) -cf $@ $(all_jar_class_files)
|
||||
$(AM_V_JAR) $(JAR) -cf $@ $(all_jar_class_files)
|
||||
|
||||
# Doc
|
||||
apidir = $(docbasedir)/lasso/java-api
|
||||
|
@ -38,7 +46,7 @@ doc:
|
|||
|
||||
|
||||
com_entrouvert_lasso_LassoJNI.h: com/entrouvert/lasso/LassoJNI.class $(java_lasso_source_files:.java=.class)
|
||||
$(JAVAH) $(JAVAH_FLAGS) -classpath . `echo $< | sed 'su/u.ug;su.classuu'`
|
||||
$(AM_V_GEN) $(JAVAH) $(JAVAH_FLAGS) -classpath . `echo $< | sed 'su/u.ug;su.classuu'`
|
||||
|
||||
libjnilasso_la_CFLAGS = -fno-strict-aliasing $(LASSO_CORE_CFLAGS) -I$(top_srcdir) -I$(top_builddir) $(AM_CFLAGS) @JAVA_INCLUDE@
|
||||
libjnilasso_la_CFLAGS += -Wno-unused-parameter
|
||||
|
@ -52,8 +60,7 @@ BUILT_SOURCES = com_entrouvert_lasso_LassoJNI.c com_entrouvert_lasso_LassoJNI.h
|
|||
BINDING_OPTION=#--enable-exception-docs
|
||||
|
||||
$(java_lasso_source_files) com_entrouvert_lasso_LassoJNI.c: wrapper_top.c wrapper_bottom.c lang.py ../bindings.py
|
||||
$(PYTHON) $(top_srcdir)/bindings/bindings.py $(BINDING_OPTION) -l java --src-dir=$(top_srcdir)/lasso/ $(EXTRA_ARGS)
|
||||
cp $(srcdir)/GObject.java com/entrouvert/lasso
|
||||
$(AM_V_GEN) $(PYTHON) $(top_srcdir)/bindings/bindings.py $(BINDING_OPTION) -l java --src-dir=$(top_srcdir)/lasso/ $(EXTRA_ARGS); cp $(srcdir)/GObject.java com/entrouvert/lasso
|
||||
|
||||
|
||||
doc-publish: doc
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -30,7 +30,7 @@ endif
|
|||
|
||||
|
||||
lasso.php _lasso.c: lang.py wrapper_source.py wrapper_header.py wrapper_source_top.c php_code.py ../overrides.xml
|
||||
$(PYTHON) $(top_srcdir)/bindings/bindings.py -l php5 --src-dir=$(top_srcdir)/lasso/ $(EXTRA_ARGS)
|
||||
$(AM_V_GEN) $(PYTHON) $(top_srcdir)/bindings/bindings.py -l php5 --src-dir=$(top_srcdir)/lasso/ $(EXTRA_ARGS)
|
||||
|
||||
doc:
|
||||
phpdoc -o HTML:frames:earthli -f lasso.php -t docs
|
||||
|
|
|
@ -36,7 +36,7 @@ EXTRA_ARGS = --enable-id-wsf
|
|||
endif
|
||||
|
||||
lasso.py _lasso.c: lang.py wrapper_top.c wrapper_bottom.c ../bindings.py
|
||||
$(PYTHON) $(top_srcdir)/bindings/bindings.py -l python --src-dir=$(top_srcdir)/lasso/ $(EXTRA_ARGS)
|
||||
$(AM_V_GEN) $(PYTHON) $(top_srcdir)/bindings/bindings.py -l python --src-dir=$(top_srcdir)/lasso/ $(EXTRA_ARGS)
|
||||
|
||||
clean-local:
|
||||
-rm -f lasso.py lasso.pyc _lasso.c
|
||||
|
|
Loading…
Reference in New Issue