The "make doc_clean" command assumes that all *.1 files are being generated with "make doc" command and removes all of them. This assumption is wrong, as the sources of man pages from section one have prefix "*.txt.1" and must not be removed. A more precise filtering is added, so only files generated during "make doc" are removed. Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@xxxxxxxxx> --- Documentation/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/Makefile b/Documentation/Makefile index 0c00505..92a67aa 100644 --- a/Documentation/Makefile +++ b/Documentation/Makefile @@ -197,7 +197,8 @@ endif CLEAN_FILES = \ $(MAN_XML) $(addsuffix +,$(MAN_XML)) \ $(MAN_HTML) $(addsuffix +,$(MAN_HTML)) \ - $(DOC_MAN3) *.3 *.1 *.m + $(filter-out $(MAN1_TEXT),$(wildcard *.1)) \ + $(DOC_MAN3) *.3 *.m clean: $(Q) $(RM) $(CLEAN_FILES) -- 2.31.1