+2004-12-27 Alexandre Duret-Lutz <adl@gnu.org>
+
+ * Makefile.am (maintainer-check): Refine check for @_ in scalar
+ context. Check for correct use of PRE_INSTALL, NORMAL_INSTALL,
+ POST_INSTALL, PRE_UNINSTALL, NORMAL_UNINSTALL, and POST_UNINSTALL.
+ * lib/am/texinfos.am (uninstall-info-am): Hide the invocation of
+ $(PRE_UNINSTALL).
+
2004-12-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* lib/am/texinfos.am (uninstall-info-am): Show change of
echo "Found incorrect use of mkinstalldirs in the lines above" 1>&2; \
exit 1; \
else :; fi
+## Make sure all calls to PRE/NORMAL/POST_INSTALL/UNINSTALL
+ @if grep -E -n '\((PRE|NORMAL|POST)_(|UN)INSTALL\)' \
+ $(srcdir)/lib/am/[a-z]*.am | \
+ grep -v ':##' | grep -v ': @\$$('; then \
+ echo "Found incorrect use of PRE/NORMAL/POST_INSTALL/UNINSTALL in the lines above" 1>&2; \
+ exit 1; \
+ else :; fi
## We never want to use "undef", only "delete", but for $/.
@if grep -n -w 'undef ' $(srcdir)/automake.in | \
grep -F -v 'undef $$/'; then \
exit 1; \
fi
## Using @_ in a scalar context is most probably a programming error.
- @if grep -Hn '[^) ] *= *@_' $(srcdir)/automake.in; then \
+ @if grep -Hn '[^@_A-Za-z0-9][_A-Za-z0-9]*[^) ] *= *@_' $(srcdir)/automake.in; then \
echo "Using @_ in a scalar context in the lines above." 1>&2; \
exit 1; \
fi
echo "Found incorrect use of mkinstalldirs in the lines above" 1>&2; \
exit 1; \
else :; fi
+ @if grep -E -n '\((PRE|NORMAL|POST)_(|UN)INSTALL\)' \
+ $(srcdir)/lib/am/[a-z]*.am | \
+ grep -v ':##' | grep -v ': @\$$('; then \
+ echo "Found incorrect use of PRE/NORMAL/POST_INSTALL/UNINSTALL in the lines above" 1>&2; \
+ exit 1; \
+ else :; fi
@if grep -n -w 'undef ' $(srcdir)/automake.in | \
grep -F -v 'undef $$/'; then \
echo "Found undef in automake.in; use delete instead" 1>&2; \
echo "Consider using $$$$(am__cd) in the line above." 1>&2; \
exit 1; \
fi
- @if grep -Hn '[^) ] *= *@_' $(srcdir)/automake.in; then \
+ @if grep -Hn '[^@_A-Za-z0-9][_A-Za-z0-9]*[^) ] *= *@_' $(srcdir)/automake.in; then \
echo "Using @_ in a scalar context in the lines above." 1>&2; \
exit 1; \
fi
$(DVIPS) -o $@ $<
uninstall-info-am:
- $(PRE_UNINSTALL)
+ @$(PRE_UNINSTALL)
@if (install-info --version && \
install-info --version 2>&1 | sed 1q | grep -i -v debian) >/dev/null 2>&1; then \
list='$(INFO_DEPS)'; \
if %?LOCAL-TEXIS%
uninstall-info-am:
- $(PRE_UNINSTALL)
+ @$(PRE_UNINSTALL)
## Run two loops here so that we can handle PRE_UNINSTALL and
## NORMAL_UNINSTALL correctly.
@if (install-info --version && \