gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
authorJim Meyering <meyering@redhat.com>
Wed, 26 Mar 2008 00:03:01 +0000 (01:03 +0100)
committerJim Meyering <meyering@redhat.com>
Wed, 26 Mar 2008 06:58:13 +0000 (07:58 +0100)
* modules/gnumakefile (clean-GNUmakefile): Also, use
test ... && ... || : syntax rather than if-then ... fi.

Signed-off-by: Jim Meyering <meyering@redhat.com>
ChangeLog
modules/gnumakefile

index ced73b057efc0549e142457c078c72a1389284e7..a391159f170e64b6f8a88edd64db89ead1ae7e30 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,10 @@
 
 2008-03-26  Jim Meyering  <meyering@redhat.com>
 
+       gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
+       * modules/gnumakefile (clean-GNUmakefile): Also, use
+       test ... && ... || : syntax rather than if-then ... fi.
+
        gnumakefile: Don't double-quote-expand $(VPATH) value.
        * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
 
index 85597708ef07dc0a3ee044caf7fa2b8d1c94a062..483ff74dd347bada4a25fcce77f95bd0bdfc91c8 100644 (file)
@@ -21,7 +21,7 @@ m4_if(m4_version_compare([2.61a.100],
 Makefile.am:
 distclean-local: clean-GNUmakefile
 clean-GNUmakefile:
-       if test x'$(VPATH)' != x ; then rm -f $(top_srcdir)/GNUmakefile ; fi
+       test x'$(VPATH)' != x && rm -f $(top_builddir)/GNUmakefile || :
 
 Include: