changeset 9815:c8889ef3be48

gnumakefile: remove file from $(top_builddir), not from $(top_srcdir) * modules/gnumakefile (clean-GNUmakefile): Also, use test ... && ... || : syntax rather than if-then ... fi. Signed-off-by: Jim Meyering <meyering@redhat.com>
author Jim Meyering <meyering@redhat.com>
date Wed, 26 Mar 2008 01:03:01 +0100
parents 4c56b4354002
children bbc1a3b802dd
files ChangeLog modules/gnumakefile
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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.
 
--- a/modules/gnumakefile
+++ b/modules/gnumakefile
@@ -21,7 +21,7 @@
 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: