]> sourceware.org Git - automake.git/commitdiff
(clean-generic): Only remove CLEANFILES if nonempty
authorTom Tromey <tromey@redhat.com>
Wed, 29 Nov 1995 03:30:47 +0000 (03:30 +0000)
committerTom Tromey <tromey@redhat.com>
Wed, 29 Nov 1995 03:30:47 +0000 (03:30 +0000)
clean.am
lib/am/clean.am

index 37400efd551e8a9e46e4cdbed105e5d1898d5c9f..e434ba55d6a56ee7dd7a1376e644a57019539ab9 100644 (file)
--- a/clean.am
+++ b/clean.am
@@ -1,7 +1,9 @@
 mostlyclean-generic:
 
 clean-generic:
-       rm -f $(CLEANFILES)
+       if test -n "$(CLEANFILES)"; then        \
+         rm -f $(CLEANFILES)                   \
+       fi
 
 distclean-generic:
        rm -f Makefile $(DISTCLEANFILES)
index 37400efd551e8a9e46e4cdbed105e5d1898d5c9f..e434ba55d6a56ee7dd7a1376e644a57019539ab9 100644 (file)
@@ -1,7 +1,9 @@
 mostlyclean-generic:
 
 clean-generic:
-       rm -f $(CLEANFILES)
+       if test -n "$(CLEANFILES)"; then        \
+         rm -f $(CLEANFILES)                   \
+       fi
 
 distclean-generic:
        rm -f Makefile $(DISTCLEANFILES)
This page took 0.062774 seconds and 5 git commands to generate.