Avoid duplicating loop header which leads to unnatural loops (and just seem like...
[oota-llvm.git] / docs / CommandGuide / Makefile
index ffbbb97abc7be257305de1d17236798d7c1ae4c0..cf77e6a33db06428b4512e67be657da7b13cff8b 100644 (file)
@@ -23,6 +23,12 @@ all:: html man ps
 
 clean:
        rm -f pod2htm*.*~~ $(HTML) $(MAN) $(PS)
+
+# To create other directories, as needed, and timestamp their creation
+%/.dir:
+       -mkdir $* > /dev/null
+       date > $@
+
 else
 
 # Otherwise, if not in BUILD_FOR_WEBSITE mode, use the project info.
@@ -83,8 +89,8 @@ install-local:: $(HTML) $(MAN) $(PS)
        $(Verb) $(DataInstall) $(PS) $(PS_DIR)
 
 uninstall-local::
-       $(Echo) Uninstalling Documentation
-       $(Verb) $(RM) -rf $(LLVM_DOCSDIR)
+       $(Echo) Uninstalling CommandGuide Documentation
+       $(Verb) $(RM) -rf $(HTML_DIR) $(MAN_DIR) $(PS_DIR)
 
 printvars::
        $(Echo) "POD            : " '$(POD)'