Skip to contentSkip to conversation

man: Fix typo and use $() for make expressions

PATCH In review Thierry Reding 4 participants 10 messages Jan 18, 2013 – Jan 25, 2013

lore
Share & tools
lore
#0 lore raw

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
index 25202e2..d25a293 100644
@@ -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
#1 lore raw

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

#2 lore raw
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

#3 lore raw
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
#4 lore raw

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

#5 lore raw
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
#6 lore raw
In reply to David Herrmann

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

#7 lore raw

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

#8 lore raw

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

#9 lore raw
In reply to David Herrmann

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