From f2edd8670bd19f5738370e6228e9f46c9cd1cb89 Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Tue, 6 Feb 2024 13:56:22 +0100 Subject: [PATCH] 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. --- src/doc/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/src/doc/Makefile.am b/src/doc/Makefile.am index 4e644557c..e0b19d12d 100644 --- a/src/doc/Makefile.am +++ b/src/doc/Makefile.am @@ -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;