OSDN Git Service

build: Simplify texi2html invocation through the --output option.
authorDiego Biurrun <diego@biurrun.de>
Mon, 30 May 2011 15:28:43 +0000 (17:28 +0200)
committerDiego Biurrun <diego@biurrun.de>
Fri, 3 Jun 2011 13:43:05 +0000 (15:43 +0200)
The --output option is available in texi2html since at least version 1.78.

Makefile

index d18a2f9..f626332 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -117,7 +117,7 @@ TEXIDEP = awk '/^@include/ { printf "$@: $(@D)/%s\n", $$2 }' <$< >$(@:%=%.d)
 doc/%.html: TAG = HTML
 doc/%.html: doc/%.texi $(SRC_PATH_BARE)/doc/t2h.init
        $(Q)$(TEXIDEP)
-       $(M)cd doc && texi2html -monolithic --init-file $(SRC_PATH_BARE)/doc/t2h.init $(<:doc/%=%)
+       $(M)texi2html -monolithic --init-file $(SRC_PATH_BARE)/doc/t2h.init --output $@ $<
 
 doc/%.pod: TAG = POD
 doc/%.pod: doc/%.texi