doc: fix install-doc dependencies
authorJames Almer <jamrial@gmail.com>
Sun, 1 Sep 2013 22:00:06 +0000 (19:00 -0300)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 7 Sep 2013 19:41:43 +0000 (21:41 +0200)
Put it inside its own ifdef conditional.

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
doc/Makefile

index a9b7ff4..47f5cbe 100644 (file)
@@ -88,15 +88,20 @@ $(DOCS) doc/doxy/html: | doc/
 doc/doxy/html: $(SRC_PATH)/doc/Doxyfile $(INSTHEADERS)
        $(M)$(SRC_PATH)/doc/doxy-wrapper.sh $(SRC_PATH) $^
 
+install-doc:
+
 install-man:
 
-ifdef CONFIG_MANPAGES
-install-progs-$(CONFIG_HTMLPAGES): install-doc
-install-progs-$(CONFIG_DOC): install-man
+ifdef CONFIG_HTMLPAGES
+install-progs-$(CONFIG_DOC): install-doc
 
 install-doc: $(HTMLPAGES)
        $(Q)mkdir -p "$(DOCDIR)"
        $(INSTALL) -m 644 $(HTMLPAGES) "$(DOCDIR)"
+endif
+
+ifdef CONFIG_MANPAGES
+install-progs-$(CONFIG_DOC): install-man
 
 install-man: $(MANPAGES)
        $(Q)mkdir -p "$(MANDIR)/man1"