diff --git a/Makefile.am b/Makefile.am index df6f2a0..ee2447e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -134,14 +134,26 @@ docdir = $(DESTDIR)$(prefix)/share/doc/$(PACKAGE)-$(VERSION) doc: doc/html -doc/html: - $(RM) -r $@ - doxygen doc/doxygen.conf +doc/html: doc/doxygen.conf + if [ -f ./doc/doc.lock ]; then \ + $(RM) -r doc/html; \ + doxygen doc/doxygen.conf; \ + fi doc-upload: doc/html scp -r $