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
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: