changeset 9815:cf81e1252f30

Don't rm files if cd fails.
author Karl Heuer <kwzh@gnu.org>
date Thu, 03 Nov 1994 20:24:53 +0000
parents 5ae33de679f6
children 433b0117220b
files Makefile.in
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile.in	Thu Nov 03 15:30:39 1994 +0000
+++ b/Makefile.in	Thu Nov 03 20:24:53 1994 +0000
@@ -389,9 +389,9 @@
 	    esac ;					\
 	  fi ;						\
 	done
-	(cd ${infodir}; rm -f cl* emacs* forms* info* vip*)
-	(cd ${mandir};  rm -f emacs.1 etags.1 ctags.1)
-	(cd ${bindir};  rm -f emacs-${version} $(EMACS))
+	(cd ${infodir} && rm -f cl* emacs* forms* info* vip*)
+	(cd ${mandir}  && rm -f emacs.1 etags.1 ctags.1)
+	(cd ${bindir}  && rm -f emacs-${version} $(EMACS))
 
 
 FRC:
@@ -436,7 +436,7 @@
 top_distclean=\
 	rm -f config.status ; \
 	rm -f Makefile ${SUBDIR_MAKEFILES} ; \
-	(cd lock ; rm -f *)
+	(cd lock && rm -f *)
 distclean: FRC
 	(cd src;      $(MAKE) $(MFLAGS) distclean)
 	(cd oldXMenu; $(MAKE) $(MFLAGS) distclean)
@@ -471,7 +471,7 @@
 ### it deletes backup and autosave files too.
 extraclean:
 	for i in ${SUBDIR}; do (cd $$i; $(MAKE) $(MFLAGS) extraclean); done
-	-(cd lock; rm *)
+	-(cd lock && rm *)
 	-rm config.status config-tmp-*
 	-rm -f *~ \#*