X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/ac96654175265aacb34f3660d35667d26feba138..acfbd607bd92cc1ba391873ce0ccec7103d858e0:/buildlib/manpage.mak

diff --git a/buildlib/manpage.mak b/buildlib/manpage.mak
index d6a4ba3a5..063841d86 100644
--- a/buildlib/manpage.mak
+++ b/buildlib/manpage.mak
@@ -5,7 +5,7 @@
 # Input
 # $(SOURCE) - The documents to use
 
-# All output is writtin to files in the build doc directory
+# All output is written to files in the build doc directory
 
 # See defaults.mak for information about LOCAL
 
@@ -14,11 +14,14 @@ LOCAL := manpage-$(firstword $(SOURCE))
 $(LOCAL)-LIST := $(addprefix $(DOC)/,$(SOURCE))
 
 # Install generation hooks
-doc: $($(LOCAL)-LIST)
+doc: manpages
+manpages: $($(LOCAL)-LIST)
 veryclean: veryclean/$(LOCAL)
 
+MKDIRS += $(DOC)
+
 $($(LOCAL)-LIST) : $(DOC)/% : %
-	echo Installing man page %< to $(@D)
+	echo Installing man page $< to $(@D)
 	cp $< $(@D)
 
 # Clean rule