bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] gnumakefile: remove file from $(top_builddir), not from $(top_sr


From: Jim Meyering
Subject: [PATCH] gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
Date: Wed, 26 Mar 2008 01:04:58 +0100

FYI, I made this change so that coreutils' "make distcheck" would
succeed once again:

diff --git a/ChangeLog b/ChangeLog
index 3286c9b..d94045c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2008-03-26  Jim Meyering  <address@hidden>

+       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.

diff --git a/modules/gnumakefile b/modules/gnumakefile
index 8559770..483ff74 100644
--- a/modules/gnumakefile
+++ b/modules/gnumakefile
@@ -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:

--
1.5.5.rc0.22.g467c




reply via email to

[Prev in Thread] Current Thread [Next in Thread]