From ecfa16cc2134ff7ed7f9fc4f669080f61aa41c32 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Tue, 15 Oct 2013 08:30:07 +0000 Subject: docs: Remove incompatibility with Solaris shell There doesn't seem to be a need in checking if a directory exists if we will just rm -rf it once we affirm that it does. Instead, just blindly try to delete it. This fixes PR17541. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192679 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/Makefile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'docs') diff --git a/docs/Makefile b/docs/Makefile index 502049174a..d973af583e 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -82,9 +82,7 @@ doxygen: regendoc $(PROJ_OBJ_DIR)/doxygen.tar.gz regendoc: $(Echo) Building doxygen documentation - $(Verb) if test -e $(PROJ_OBJ_DIR)/doxygen ; then \ - $(RM) -rf $(PROJ_OBJ_DIR)/doxygen ; \ - fi + $(Verb) $(RM) -rf $(PROJ_OBJ_DIR)/doxygen $(Verb) $(DOXYGEN) $(PROJ_OBJ_DIR)/doxygen.cfg $(PROJ_OBJ_DIR)/doxygen.tar.gz: $(DOXYFILES) $(PROJ_OBJ_DIR)/doxygen.cfg @@ -118,9 +116,7 @@ ocamldoc: regen-ocamldoc regen-ocamldoc: $(Echo) Building ocamldoc documentation - $(Verb) if test -e $(PROJ_OBJ_DIR)/ocamldoc ; then \ - $(RM) -rf $(PROJ_OBJ_DIR)/ocamldoc ; \ - fi + $(Verb) $(RM) -rf $(PROJ_OBJ_DIR)/ocamldoc $(Verb) $(MAKE) -C $(LEVEL)/bindings/ocaml ocamldoc $(Verb) $(MKDIR) $(PROJ_OBJ_DIR)/ocamldoc/html $(Verb) \ -- cgit v1.2.3