Fix various regression for building out of tree.
[gnushogi.git] / doc / Makefile.in
similarity index 75%
rename from doc/Makefile
rename to doc/Makefile.in
index 8b93ab6..7fd7993 100644 (file)
@@ -3,21 +3,22 @@ DISTCLEANFILES = *.ps *.html
 CLEANFILES = *.log *.dvi *.aux *.dlog \
              *.cp *.cps *.fn *.ky *.pg *.toc *.tp *.vr
 
+SRCDIR = @srcdir@
 
 info:
-       makeinfo gnushogi.texinfo
+       makeinfo $(SRCDIR)/gnushogi.texinfo
 
 dvi:
-       texi2dvi gnushogi.texinfo
+       texi2dvi $(SRCDIR)/gnushogi.texinfo
 
 pdf:
-       texi2pdf gnushogi.texinfo
+       texi2pdf $(SRCDIR)/gnushogi.texinfo
 
 # I do some egregious hacks to get around limitations of 
 # texi2html.
 
 html:
-       texi2html -split_node gnushogi.texinfo
+       texi2html -split_node $(SRCDIR)/gnushogi.texinfo
 
 ps: dvi
        dvips -t letter gnushogi.dvi -o gnushogi.ps
@@ -26,7 +27,7 @@ ps2: dvi
        dvi2ps gnushogi.dvi > gnushogi.ps
 
 spell:
-       tr '[A-Z]' '[a-z]' < gnushogi.texinfo | tr -cd '[A-Za-z0-9_ \012]' | \
+       tr '[A-Z]' '[a-z]' < $(SRCDIR)/gnushogi.texinfo | tr -cd '[A-Za-z0-9_ \012]' | \
        tr -s '[ ]' '\012' | sort | uniq -c | sort -nr | spell | sort | uniq
 
 clean: