aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid M. Syzdek <david@syzdek.net>2019-11-21 20:36:48 -0900
committerDavid M. Syzdek <david@syzdek.net>2019-11-21 20:36:48 -0900
commit87b688e3e9ed26d4be428c860e91553e03c36af5 (patch)
treecfc47fd8fe64e092d407ec55a6209d0e36270fbc
parent02d66dee25d7ea33575a699316d323d321a371d7 (diff)
downloadbindletools-87b688e3e9ed26d4be428c860e91553e03c36af5.tar.gz
bindletools-87b688e3e9ed26d4be428c860e91553e03c36af5.tar.bz2
bindletools-87b688e3e9ed26d4be428c860e91553e03c36af5.tar.xz
bindletools-87b688e3e9ed26d4be428c860e91553e03c36af5.zip
automake: updating and to support V=0
-rw-r--r--build-aux/makefile-subst.am23
1 files changed, 12 insertions, 11 deletions
diff --git a/build-aux/makefile-subst.am b/build-aux/makefile-subst.am
index 13161e4..21ac4de 100644
--- a/build-aux/makefile-subst.am
+++ b/build-aux/makefile-subst.am
@@ -71,7 +71,7 @@ AM_CPPFLAGS += -DTOP_SRCDIR="\"$(abs_top_srcdir)\""
71 71
72 72
73# substitution routine 73# substitution routine
74do_subst = sed \ 74do_subst = $(SED) \
75 -e 's,[@]SHELL[@],$(SHELL),g' \ 75 -e 's,[@]SHELL[@],$(SHELL),g' \
76 -e 's,[@]PACKAGE_VERSION[@],$(PACKAGE_VERSION),g' \ 76 -e 's,[@]PACKAGE_VERSION[@],$(PACKAGE_VERSION),g' \
77 -e 's![@]PACKAGE_NAME[@]!$(PACKAGE_NAME)!g' \ 77 -e 's![@]PACKAGE_NAME[@]!$(PACKAGE_NAME)!g' \
@@ -123,16 +123,17 @@ do_subst = sed \
123 -e 's,[@]top_builddir[@],$(abs_top_builddir),g' \ 123 -e 's,[@]top_builddir[@],$(abs_top_builddir),g' \
124 -e 's,[@]top_srcdir[@],$(abs_top_srcdir),g' \ 124 -e 's,[@]top_srcdir[@],$(abs_top_srcdir),g' \
125 $(SUBST_EXPRESSIONS) 125 $(SUBST_EXPRESSIONS)
126do_subst_fn = \ 126do_subst_common = \
127 echo "do_subst < ${@}.in > ${@}"; \ 127 @if test "x$(V)" == "x0";then \
128 mkdir -p `dirname ${@}` || exit 1; \ 128 echo " SED $(@)"; \
129 ${do_subst} < $(srcdir)/${@}.in > ${@} || exit 1; \ 129 else \
130 chmod 0755 ${@} 130 echo "do_subst < ${@}.in > ${@}"; \
131do_subst_dt = \ 131 fi; \
132 echo "do_subst < ${@}.in > ${@}"; \ 132 $(MKDIR_P) "`dirname "$(@)"`" || exit 1; \
133 mkdir -p `dirname ${@}` || exit 1; \ 133 $(do_subst) < "$(srcdir)/$(@).in" > "$(@)" || exit 1; \
134 ${do_subst} < $(srcdir)/${@}.in > ${@} || exit 1; \ 134 touch "$(@)"
135 chmod 0644 ${@} 135do_subst_fn = $(do_subst_common); chmod 0755 "$(@)"
136do_subst_dt = $(do_subst_common); chmod 0644 "$(@)"
136 137
137 138
138# end of automake file 139# end of automake file