aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/Makefile
diff options
context:
space:
mode:
authorJohn Kacur <jkacur@redhat.com>2010-06-09 12:01:28 -0400
committerSteven Rostedt <rostedt@goodmis.org>2010-06-09 15:22:23 -0400
commit8193d975583d332d0b83def6e4bf97a8a8f7b7f0 (patch)
tree3ab5fb3b68cc01d3d855dcac204f766228387054 /Documentation/Makefile
parent533f4c1a99bb483f9d0beb341b9bd1027712d693 (diff)
build/doc: Use a substitution reference in man pages install
subst will substitution every occurence of a string with another. What we want here is just to substitute the last occurence. That is we want to transform files that end with .1 into .1.install We do not want to transform every ".1" in a path name into .1.install. Without this fix you can get errors of this nature. make prefix=/home/jkacur/rpmbuild/BUILDROOT/trace-cmd-1.0.1-4.fc12.x86_64/usr install_doc make -C /home/jkacur/rpmbuild/BUILD/trace-cmd-1.0.1/Documentation install make[1]: *** No rule to make target `/home/jkacur/rpmbuild/BUILD/trace-cmd-1.0.1.install/Documentation/trace-cmd.1', needed by `/home/jkacur/rpmbuild/BUILD/trace-cmd-1.0.1.install/Documentation/trace-cmd.1.install'. Stop. make: *** [install_doc] Error 2 Signed-off-by: John Kacur <jkacur@redhat.com> LKML-Reference: <1276099288-3029-3-git-send-email-jkacur@redhat.com> Use a "substitution reference" instead of a substitution. A "subst" will change every occurence of a string Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'Documentation/Makefile')
-rw-r--r--Documentation/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/Makefile b/Documentation/Makefile
index 7ed8877..d161703 100644
--- a/Documentation/Makefile
+++ b/Documentation/Makefile
@@ -77,8 +77,8 @@ define do_install
77 $(INSTALL) $1 $2; 77 $(INSTALL) $1 $2;
78endef 78endef
79 79
80MAN1_INSTALL = $(subst .1,.1.install,$(MAN1)) 80MAN1_INSTALL = $(MAN1:%.1=%.1.install)
81MAN5_INSTALL = $(subst .5,.5.install,$(MAN5)) 81MAN5_INSTALL = $(MAN5:%.5=%.5.install)
82 82
83$(MAN1_INSTALL): %.1.install : %.1 force 83$(MAN1_INSTALL): %.1.install : %.1 force
84 $(Q)$(call do_install, $<, '$(man_dir_SQ)/man1') 84 $(Q)$(call do_install, $<, '$(man_dir_SQ)/man1')
@@ -92,4 +92,4 @@ clean:
92 $(RM) *.xml *.xsl *.1 *.5) 92 $(RM) *.xml *.xsl *.1 *.5)
93 93
94.PHONE: force 94.PHONE: force
95force: \ No newline at end of file 95force: