doc: pass -Idoc texi2html and texi2pod
authorMans Rullgard <mans@mansr.com>
Tue, 20 Mar 2012 10:54:02 +0000 (10:54 +0000)
committerMans Rullgard <mans@mansr.com>
Tue, 20 Mar 2012 11:10:25 +0000 (11:10 +0000)
This fixes doc generation in build tree separate from source.

Signed-off-by: Mans Rullgard <mans@mansr.com>
doc/Makefile

index 5172707..a051f6e 100644 (file)
@@ -29,12 +29,12 @@ $(GENTEXI): doc/avoptions_%.texi: doc/print_options
 doc/%.html: TAG = HTML
 doc/%.html: doc/%.texi $(SRC_PATH)/doc/t2h.init $(GENTEXI)
        $(Q)$(TEXIDEP)
-       $(M)texi2html -monolithic --init-file $(SRC_PATH)/doc/t2h.init --output $@ $<
+       $(M)texi2html -I doc -monolithic --init-file $(SRC_PATH)/doc/t2h.init --output $@ $<
 
 doc/%.pod: TAG = POD
 doc/%.pod: doc/%.texi $(GENTEXI)
        $(Q)$(TEXIDEP)
-       $(M)$(SRC_PATH)/doc/texi2pod.pl $< $@
+       $(M)$(SRC_PATH)/doc/texi2pod.pl -Idoc $< $@
 
 doc/%.1: TAG = MAN
 doc/%.1: doc/%.pod $(GENTEXI)