]> sourceware.org Git - automake.git/commitdiff
* Makefile.am (maintainer-check): Fix $MAKE -e detection.
authorAlexandre Duret-Lutz <adl@gnu.org>
Mon, 10 Jun 2002 09:49:21 +0000 (09:49 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Mon, 10 Jun 2002 09:49:21 +0000 (09:49 +0000)
* tests/yacc7.test: Use rm -f.

ChangeLog
Makefile.am
Makefile.in
tests/yacc7.test

index 5b1b6a07f72d5669b7bf38e0d0f6a89cf31abbbf..16b5dc2f0343d09f198e90061f492cc5f14c63a5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
+
+       * Makefile.am (maintainer-check): Fix $MAKE -e detection.
+       * tests/yacc7.test: Use rm -f.
+
 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
 
        * tests/defs (ACLOCAL, AUTOMAKE): Use absolute paths.
index c4685258e614fa0f84560e6535fa6eb14cfa4b38..42fd5bf1c9bbafb59348af679c6cdf6c7fda17a7 100644 (file)
@@ -192,7 +192,7 @@ maintainer-check: automake aclocal
        fi
 ## On NetBSD (1.5) and OSF, the $SHELL variable is still inherited from
 ## the environment.
-       @if grep '$$MAKE.*-e' $(srcdir)/tests/*.test | grep -v '-e.*SHELL' ; then \
+       @if grep '$$MAKE.* -e' $(srcdir)/tests/*.test | grep -v '-e.*SHELL' ; then \
          echo 'Always overwrite SHELL when using "$$MAKE -e".' 1>&2; \
          echo 'Use "$$MAKE -e SHELL=/bin/sh" in the above lines.' 1>&2; \
          exit 1; \
index 67c220cfd127bcb550f49c2db2dd10145fc3e376..ea20fcaf70ca56cb4eba25fbe16214452f4863ae 100644 (file)
@@ -26,6 +26,7 @@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
 INSTALL = @INSTALL@
 install_sh_DATA = $(install_sh) -c -m 644
 install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
 INSTALL_HEADER = $(INSTALL_DATA)
 NORMAL_INSTALL = :
 PRE_INSTALL = :
@@ -146,24 +147,25 @@ automake: $(top_builddir)/config.status automake.in
        cd $(top_builddir) && $(SHELL) ./config.status $@
 aclocal: $(top_builddir)/config.status aclocal.in
        cd $(top_builddir) && $(SHELL) ./config.status $@
+binSCRIPT_INSTALL = $(INSTALL_SCRIPT)
 install-binSCRIPTS: $(bin_SCRIPTS)
        @$(NORMAL_INSTALL)
        $(mkinstalldirs) $(DESTDIR)$(bindir)
        @list='$(bin_SCRIPTS)'; for p in $$list; do \
-         f="`echo $$p|sed '$(transform)'`"; \
-         if test -f $$p; then \
-           echo " $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/$$f"; \
-           $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/$$f; \
-         elif test -f $(srcdir)/$$p; then \
-           echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/$$f"; \
-           $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/$$f; \
+         if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+         f="`echo $$p | sed -e 's|^.*/||'`"; \
+         if test -f $$d$$p; then \
+           f="`echo $$f|sed '$(transform)'`"; \
+           echo " $(binSCRIPT_INSTALL) $$d$$p $(DESTDIR)$(bindir)/$$f"; \
+           $(binSCRIPT_INSTALL) $$d$$p $(DESTDIR)$(bindir)/$$f; \
          else :; fi; \
        done
 
 uninstall-binSCRIPTS:
        @$(NORMAL_UNINSTALL)
        @list='$(bin_SCRIPTS)'; for p in $$list; do \
-         f="`echo $$p|sed '$(transform)'`"; \
+         f="`echo $$p | sed -e 's|^.*/||'`"; \
+         f="`echo $$f|sed '$(transform)'`"; \
          echo " rm -f $(DESTDIR)$(bindir)/$$f"; \
          rm -f $(DESTDIR)$(bindir)/$$f; \
        done
@@ -709,7 +711,7 @@ maintainer-check: automake aclocal
          echo 'it is more portable.' 1>&2; \
          exit 1; \
        fi
-       @if grep '$$MAKE.*-e' $(srcdir)/tests/*.test | grep -v '-e.*SHELL' ; then \
+       @if grep '$$MAKE.* -e' $(srcdir)/tests/*.test | grep -v '-e.*SHELL' ; then \
          echo 'Always overwrite SHELL when using "$$MAKE -e".' 1>&2; \
          echo 'Use "$$MAKE -e SHELL=/bin/sh" in the above lines.' 1>&2; \
          exit 1; \
index 7b474a73f1cfbe83469361db8ea085d35dfb70ab..750692dfbeb9d1347f75dbb8494d933de6b63ec2 100755 (executable)
@@ -47,7 +47,7 @@ $MAKE check-dist || exit 1
 
 # We should be able to recover if foo.h is deleted.
 
-rm foo.h || exit 1
+rm -f foo.h || exit 1
 $MAKE foo.h || exit 1
 test -f foo.h || exit 1
 
This page took 0.107789 seconds and 5 git commands to generate.