doc: fix install-doc dependencies

Put it inside its own ifdef conditional.

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/35/head
James Almer 11 years ago committed by Michael Niedermayer
parent d2382903d6
commit 2df184f3d5
  1. 11
      doc/Makefile

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

Loading…
Cancel
Save