Improve the doc generation a bit.

Do not rebuild the docs again if they are up-to-date.  This avoids as
well that they are rebuilt during "make install".

Use mv -f instead of plain mv in order to install the docs into the
respective subdirs, in order to avoid silly questions for non-writable
destination files.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@508 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Joerg Wunsch 2005-09-17 20:04:31 +00:00
parent 133e824f8d
commit 859a5aee59
1 changed files with 5 additions and 4 deletions

View File

@ -29,15 +29,16 @@ info_TEXINFOS = avrdude.texi
all-local: info html ps pdf
html:
html: avrdude-html/avrdude.html
avrdude-html/avrdude.html: $(srcdir)/$(info_TEXINFOS)
texi2html -split_node $(srcdir)/$(info_TEXINFOS)
if [ -e ./avrdude.html ]; then \
mkdir -p avrdude-html; \
mv *.html avrdude-html ; \
mv -f *.html avrdude-html ; \
else \
mv avrdude avrdude-html; \
mv -f avrdude avrdude-html; \
fi;
clean-local:
rm -rf avrdude-html *.info