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 ced73b0..a391159 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 8559770..483ff74 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: