(mostlyclean): Clean objc subdir only if it exists.

From-SVN: r2565
This commit is contained in:
Richard Stallman 1992-10-23 02:34:04 +00:00
parent fb5779467f
commit b76771897a
1 changed files with 5 additions and 3 deletions

View File

@ -1266,9 +1266,11 @@ $(srcdir)/INSTALL: install1.texi install.texi
mostlyclean:
-rm -f $(STAGESTUFF)
# Clean the objc subdir.
srcdir1=`cd $(srcdir); pwd`; \
cd objc; $(MAKE) -f $$srcdir1/objc/Makefile mostlyclean
# Clean the objc subdir if we created one.
if [ -d objc ]; then \
srcdir1=`cd $(srcdir); pwd`; \
cd objc; $(MAKE) -f $$srcdir1/objc/Makefile mostlyclean \
else true; fi
-rm -f libobjc.a
# Delete the temporary source copies for cross compilation.
-rm -f $(HOST_PREFIX_1)rtl.c $(HOST_PREFIX_1)rtlanal.c