2001-10-20 Kevin Ryde <user42@zip.com.au>
authorTom Tromey <tromey@redhat.com>
Sat, 20 Oct 2001 19:17:16 +0000 (19:17 +0000)
committerTom Tromey <tromey@redhat.com>
Sat, 20 Oct 2001 19:17:16 +0000 (19:17 +0000)
* lib/am/ansi2knr.am (mostlyclean-kr): Only rm *_.c when
actually using ansi2knr.

ChangeLog
lib/am/ansi2knr.am

index 6c30e2a..cdcbbbd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2001-10-20  Kevin Ryde <user42@zip.com.au>
 
+       * lib/am/ansi2knr.am (mostlyclean-kr): Only rm *_.c when
+       actually using ansi2knr.
+
        * automake.in (handle_configure): Always put a number on $stamp_name,
        to match AM_CONFIG_HEADER.
 
index a267cef..0f53673 100644 (file)
@@ -71,4 +71,7 @@ endif !%?ANSI2KNR-DIR%
 
 mostlyclean-am: mostlyclean-kr
 mostlyclean-kr:
-       -rm -f *_.c
+## Only delete *_.c when ansi2knr is actually in use, so as to avoid
+## deleting sources that happen to end in "_" after being truncated on a DOS
+## 8.3 filesystem with srcdir==builddir.
+       -test "$U" = "" || rm -f *_.c