Allow repeated doc builds without errors (Autotools)

Sometimes when building with the Autoconf buildsystem,
the avrdude-html/ subdir already exists and therefore
renaming the newly built avrdude/ subdir to avrdude-html/
cannot succeed.

Removing the old avrdude-html/ subdir first fixes that.
This commit is contained in:
Hans Ulrich Niedermann
2024-02-06 13:56:22 +01:00
parent 1a64d3831b
commit ce1bc3e34f

View File

@@ -45,6 +45,7 @@ avrdude-html/avrdude.html: $(srcdir)/$(info_TEXINFOS) $(GENERATED_TEXINFOS)
mkdir -p avrdude-html ; \
mv -f *.html avrdude-html ; \
else \
rm -rf avrdude-html; \
mv -f avrdude avrdude-html; \
fi;