libtracefs: Some clean ups
cover libtracefs: Some clean ups
Steven Rostedt (VMware) (2):
libtracefs: Fix dependencies in Documentation Makefile
libtracefs: Add .gitignore files
----
.gitignore | 10 ++++++++++ Documentation/.gitignore | 4 ++++ Documentation/Makefile | 24 +++++++++++++++--------- 3 files changed, 29 insertions(+), 9 deletions(-) create mode 100644 .gitignore create mode 100644 Documentation/.gitignore
PATCH 1/2 libtracefs: Fix dependencies in Documentation Makefile
From: "Steven Rostedt (VMware)" <[email protected]>
Modify the Documentation Makefile to only rebuild the man pages when their source has been modified.
Signed-off-by Steven Rostedt (VMware) <[email protected]>
--- Documentation/Makefile | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-)
Documentation/Makefile +15 -9
@@ -13,7 +13,7 @@ MAN3_TXT= \ MAN_TXT = $(MAN3_TXT) _MAN_XML=$(patsubst %.txt,%.xml,$(MAN_TXT)) _MAN_HTML=$(patsubst %.txt,%.html,$(MAN_TXT)) -_DOC_MAN3=$(patsubst %.txt,%.3,$(MAN3_TXT)) +_DOC_MAN3=$(patsubst %.txt,%.m,$(MAN3_TXT)) MAN_XML=$(addprefix $(OUTPUT),$(_MAN_XML)) MAN_HTML=$(addprefix $(OUTPUT),$(_MAN_HTML))
@@ -145,13 +145,18 @@ ifdef missing_tools $(error "You need to install $(missing_tools) for man pages") endif -do-install-man: man - $(Q)$(call do_install,$(OUTPUT)*.3,$(man3dir),644); +install-%.3: $(OUTPUT)%.3 + $(Q)$(call do_install,$<,$(man3dir),644); -install-man: man do-install-man +do-install-man: man $(addprefix install-,$(wildcard $(OUTPUT)*.3)) -do-install-html: html - $(Q)$(call do_install,$(OUTPUT)*.html,$(htmldir),644); +install-man: man + $(Q)$(MAKE) -C . do-install-man + +install-%.txt: $(OUTPUT)%.html + $(Q)$(call do_install,$<,$(htmldir),644); + +do-install-html: html $(addprefix install-,$(wildcard *.txt)) install-html: html do-install-html
@@ -172,7 +177,7 @@ endif CLEAN_FILES = \ $(MAN_XML) $(addsuffix +,$(MAN_XML)) \ $(MAN_HTML) $(addsuffix +,$(MAN_HTML)) \ - $(DOC_MAN3) *.3 + $(DOC_MAN3) *.3 *.m clean: $(Q) $(RM) $(CLEAN_FILES)
@@ -185,9 +190,10 @@ $(OUTPUT)%.3 : $(OUTPUT)%.txt mv $@+ $@ endif -$(OUTPUT)%.3 : $(OUTPUT)%.xml +$(OUTPUT)%.m : $(OUTPUT)%.xml $(QUIET_XMLTO)$(RM) $@ && \ - $(XMLTO) -o $(OUTPUT). -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $< + $(XMLTO) -o $(OUTPUT). -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $<; \ + touch $@ $(OUTPUT)%.xml : %.txt $(QUIET_ASCIIDOC)$(RM) $@+ $@ && \
Signature · 1 line
2.30.1
PATCH 2/2 libtracefs: Add .gitignore files
In reply to Steven RostedtFrom: "Steven Rostedt (VMware)" <[email protected]>
Add .gitignore files to remove backup files from vim and emacs, as well as created files for installing and for documentation.
Signed-off-by Steven Rostedt (VMware) <[email protected]>
--- .gitignore | 10 ++++++++++ Documentation/.gitignore | 4 ++++ 2 files changed, 14 insertions(+) create mode 100644 .gitignore create mode 100644 Documentation/.gitignore
.gitignore new file +10 -0
@@ -0,0 +1,10 @@ +*~ +\#*\# +.pc +libtracefs.pc +TAGS +tags +lib/ +patches/ +build_prefix +build_uninstall
Documentation/.gitignore new file +4 -0
@@ -0,0 +1,4 @@ +*.3 +*.m +*.xml +*.html
Signature · 1 line
2.30.1