Mercurial > hg > octave-nkf
diff libinterp/dldfcn/config-module.awk @ 19997:4f6ae6b94abe
make --enable-silent-rules configure option more useful
* sparse-mx-ops: Rename from smx-ops.
* genpropdoc.m: Write to stdout if filename is not supplied.
* Makefile.am, build-aux/common.mk, doc/interpreter/Makefile.am,
doc/interpreter/graphics_properties.mk, etc/icons/Makefile.am,
libgui/Makefile.am, libinterp/Makefile.am,
libinterp/corefcn/module.mk, libinterp/octave-value/module.mk,
libinterp/operators/module.mk, libinterp/parse-tree/module.mk,
liboctave/cruft/module.mk, liboctave/cruft/ranlib/module.mk,
liboctave/cruft/slatec-fn/module.mk, liboctave/numeric/module.mk,
liboctave/operators/module.mk, scripts/Makefile.am,
scripts/java/module.mk, src/Makefile.am, test/Makefile.am:
Preface rules with $(AM_V_GEN) or similar as needed. Improve
consistency of rules. Prefer commands that write to stdout,
redirecting output to $@-t, then moving to $@.
* doc/interpreter/images.awk, libinterp/dldfcn/config-module.awk:
Generate rules with $(AM_V_GEN).
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 20 Feb 2015 17:18:19 -0500 |
parents | 228cfaf24208 |
children | 925fdd91abba |
line wrap: on
line diff
--- a/libinterp/dldfcn/config-module.awk +++ b/libinterp/dldfcn/config-module.awk @@ -38,16 +38,21 @@ print "## Use stamp files to avoid problems with checking timestamps"; print "## of symbolic links"; print ""; - for (i = 1; i <= nfiles; i++) { + print "define gen-oct-stamp-file" + print " rm -f $(<:.la=.oct)"; + print " la=$(<F) && \\"; + print " of=$(<F:.la=.oct) && \\"; + print " cd dldfcn && \\"; + print " $(LN_S) .libs/`$(SED) -n -e \"s/dlname='\\([^']*\\)'/\\1/p\" < $$la` $$of && \\"; + print " touch $(@F)"; + print "endef" + print "" + + for (i = 1; i <= nfiles; i++) { basename = files[i]; sub (/\.cc$/, "", basename); printf ("dldfcn/$(am__leading_dot)%s.oct-stamp: dldfcn/%s.la\n", basename, basename); - print "\trm -f $(<:.la=.oct)"; - print "\tla=$(<F) && \\"; - print "\t of=$(<F:.la=.oct) && \\"; - print "\t cd dldfcn && \\"; - print "\t $(LN_S) .libs/`$(SED) -n -e \"s/dlname='\\([^']*\\)'/\\1/p\" < $$la` $$of && \\"; - print "\t touch $(@F)"; + print "\t$(AM_GEN_V)$(gen-oct-stamp-file)" print ""; } print "else";