diff mbox series

[v7,12/15] libtracefs: Do not clean sqlhist man page source

Message ID 20211115104556.121359-13-tz.stoyanov@gmail.com (mailing list archive)
State Accepted
Commit 28b70c61183cef2684b7001cf96bee6a15abf48d
Headers show
Series libtracefs dynamic events support | expand

Commit Message

Tzvetomir Stoyanov (VMware) Nov. 15, 2021, 10:45 a.m. UTC
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@gmail.com>
---
 Documentation/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

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)