man: Fix typo and use $() for make expressions
PATCH 1/1 man: Fix typo and use $() for make expressions
Due to the typo, none of the .xml files would end up in the release tarball and cause make distcheck as well as builds from the tarball to fail.
Using $() isn't strictly necessary but other variables and expressions use that variant already so it makes the usage consistent.
--- man/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
man/Makefile.am +2 -1
@@ -17,7 +17,8 @@ MANPAGES_ALIASES = \ drm-ttm.7 XML_FILES = \ - ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubs %.7,%.xml,$(MANPAGES)}}}} + $(patsubst %.1,%.xml,$(patsubst %.3,%.xml,$(patsubst %.5,%.xml,$(patsubst %.7,%.xml,$(MANPAGES))))) + EXTRA_DIST = $(XML_FILES) CLEANFILES = $(MANPAGES) $(MANPAGES_ALIASES) .man_fixup man_MANS =
Signature · 1 line
1.8.1.1
Hi Thierry
Quoted 6 lines · Thierry Reding
Due to the typo, none of the .xml files would end up in the release tarball and cause make distcheck as well as builds from the tarball to fail.
Using $() isn't strictly necessary but other variables and expressions use that variant already so it makes the usage consistent.
That's weird. "make distcheck" should not be able to build the manpages if the XML files are not available. Also ${} is pretty standard in makefiles, isn't it? I wonder what the problem here is. At least distcheck runs fine on my machine.
Regards
David
Quoted 8 lines · David Herrmann
Hi Thierry
Quoted 4 lines · Thierry Reding
Due to the typo, none of the .xml files would end up in the release tarball and cause make distcheck as well as builds from the tarball to fail.
Quoted 7 lines
Quoted 2 lines
Using $() isn't strictly necessary but other variables and expressions use that variant already so it makes the usage consistent.
That's weird. "make distcheck" should not be able to build the manpages if the XML files are not available. Also ${} is pretty standard in makefiles, isn't it? I wonder what the problem here is. At least distcheck runs fine on my machine.
Ah sorry, I now saw the "subs" => "subst" typo. Still I wonder why distcheck works here. But the patch looks fine. Thanks!
Quoted 2 lines
Regards
David
Quoted 13 lines · On Fri, 18 Jan 2013 17:01:59 +0100 David Herrmann <[email protected]>…
Quoted 11 lines · David Herrmann
Hi Thierry
Quoted 6 lines · Thierry Reding
Due to the typo, none of the .xml files would end up in the release tarball and cause make distcheck as well as builds from the tarball to fail.
Using $() isn't strictly necessary but other variables and expressions use that variant already so it makes the usage consistent.
Quoted 7 lines
Quoted 4 lines
That's weird. "make distcheck" should not be able to build the manpages if the XML files are not available. Also ${} is pretty standard in makefiles, isn't it? I wonder what the problem here is. At least distcheck runs fine on my machine.
Ah sorry, I now saw the "subs" => "subst" typo. Still I wonder why distcheck works here. But the patch looks fine. Thanks!
Works here too. Pushed with David's reviewed-by. Thanks Thierry.
Signature · 1 line
Jesse Barnes, Intel Open Source Technology Center
Hi Jesse
Quoted 21 lines · Jesse Barnes
Quoted 18 lines · On Fri, 18 Jan 2013 17:01:59 +0100 David Herrmann <[email protected]>…
Quoted 15 lines · David Herrmann
Hi Thierry
Quoted 6 lines · Thierry Reding
Due to the typo, none of the .xml files would end up in the release tarball and cause make distcheck as well as builds from the tarball to fail.
Using $() isn't strictly necessary but other variables and expressions use that variant already so it makes the usage consistent.
That's weird. "make distcheck" should not be able to build the manpages if the XML files are not available. Also ${} is pretty standard in makefiles, isn't it? I wonder what the problem here is. At least distcheck runs fine on my machine.
Quoted 4 lines
Quoted 2 lines
Ah sorry, I now saw the "subs" => "subst" typo. Still I wonder why distcheck works here. But the patch looks fine. Thanks!
Works here too. Pushed with David's reviewed-by. Thanks Thierry.
Did you forget to push this patch? I cannot see it in upstream fdo libdrm repository. Or maybe I am just looking at the wrong place.
Thanks
David
Quoted 24 lines · On Fri, 25 Jan 2013 16:54:11 +0100 David Herrmann <[email protected]>…
Hi Jesse
Quoted 21 lines · Jesse Barnes
Quoted 18 lines · On Fri, 18 Jan 2013 17:01:59 +0100 David Herrmann <[email protected]>…
Quoted 15 lines · David Herrmann
Hi Thierry
Quoted 6 lines · Thierry Reding
Due to the typo, none of the .xml files would end up in the release tarball and cause make distcheck as well as builds from the tarball to fail.
Using $() isn't strictly necessary but other variables and expressions use that variant already so it makes the usage consistent.
That's weird. "make distcheck" should not be able to build the manpages if the XML files are not available. Also ${} is pretty standard in makefiles, isn't it? I wonder what the problem here is. At least distcheck runs fine on my machine.
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Ah sorry, I now saw the "subs" => "subst" typo. Still I wonder why distcheck works here. But the patch looks fine. Thanks!
Works here too. Pushed with David's reviewed-by. Thanks Thierry.
Did you forget to push this patch? I cannot see it in upstream fdo libdrm repository. Or maybe I am just looking at the wrong place.
Yeah failed to push, sorry. Should be there now.
Signature · 1 line
Jesse Barnes, Intel Open Source Technology Center
Hi David:
Sorry for jumping in. I pulled the ToT libdrm and it seems the manpages will not be built("make html" does nothing), any suggestions?
P.S: I've installed xsltproc.
Mark
Quoted 28 lines · David Herrmann
Quoted 8 lines · David Herrmann
Hi Thierry
Quoted 4 lines · Thierry Reding
Due to the typo, none of the .xml files would end up in the release tarball and cause make distcheck as well as builds from the tarball to fail.
Quoted 7 lines
Quoted 2 lines
Using $() isn't strictly necessary but other variables and expressions use that variant already so it makes the usage consistent.
That's weird. "make distcheck" should not be able to build the manpages if the XML files are not available. Also ${} is pretty standard in makefiles, isn't it? I wonder what the problem here is. At least distcheck runs fine on my machine.
Ah sorry, I now saw the "subs" => "subst" typo. Still I wonder why distcheck works here. But the patch looks fine. Thanks!
Quoted 2 lines
Regards
David_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Hi Mark
Quoted 4 lines · Mark Zhang
Hi David:
Sorry for jumping in. I pulled the ToT libdrm and it seems the manpages will not be
built("make html" does nothing), any suggestions?
The manpages should be built automatically if you do "make". Or you can try "make -C man" to built the manpages exclusively.
If "make -C man" does nothing, then you don't have the docbook-xsl stylesheets on your machine, or xsltproc is missing or you passed --disable-manpages to ./configure.
I think the packages for these files are called "xsltproc" and "doocbook-xsl" in most distributions.
Regards
David
Thanks, David.
After "sudo apt-get install docbook-xsl" and configure the libdrm with "--enable-manpages", I see the manpages generated.
Mark
Quoted 21 lines · David Herrmann
Hi Mark
Quoted 4 lines · Mark Zhang
Hi David:
Sorry for jumping in. I pulled the ToT libdrm and it seems the manpages will not be
built("make html" does nothing), any suggestions?The manpages should be built automatically if you do "make". Or you can try "make -C man" to built the manpages exclusively.
If "make -C man" does nothing, then you don't have the docbook-xsl stylesheets on your machine, or xsltproc is missing or you passed --disable-manpages to ./configure.
I think the packages for these files are called "xsltproc" and "doocbook-xsl" in most distributions.
Regards
David
On Fri, Jan 18, 2013 at 05:00:34PM +0100, David Herrmann wrote:
[...]
Quoted 1 line
Also ${} is pretty standard in makefiles, isn't it?
The curly braces are allowed and valid syntax, but I haven't seen many uses of them. Historically only $() was a documented feature, while ${} was accepted as equivalent but undocumented. Apparently ${} is more common on BSD or in older makefiles. According to Wikipedia[0], the ${} variant is "rarely used". While Wikipedia isn't necessarily an authoritative source, it certainly corresponds with my experience in this case.
Thierry
[0]: http://en.wikipedia.org/wiki/Make_(software)
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel