Browse Source

Change dir into doc/ when running texi2html

This silly program always writes its output to the current directory.
Changing directory is better than moving the file afterwards.

Originally committed as revision 22417 to svn://svn.ffmpeg.org/ffmpeg/trunk
Måns Rullgård 15 years ago
parent
commit
b91cd80917
1 changed files with 1 additions and 2 deletions
  1. 1 2
      Makefile

+ 1 - 2
Makefile

@@ -94,8 +94,7 @@ documentation: $(addprefix doc/, developer.html faq.html ffmpeg-doc.html \
                                  general.html libavfilter.html $(ALLMANPAGES))
 
 doc/%.html: doc/%.texi
-	texi2html -monolithic -number $<
-	mv $(@F) $@
+	cd doc && texi2html -monolithic -number $(<:doc/%=%)
 
 doc/%.pod: doc/%-doc.texi
 	doc/texi2pod.pl $< $@