All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] man: Fix typo and use $() for make expressions
@ 2013-01-18 12:22 Thierry Reding
  2013-01-18 16:00 ` David Herrmann
  0 siblings, 1 reply; 10+ messages in thread
From: Thierry Reding @ 2013-01-18 12:22 UTC (permalink / raw)
  To: dri-devel

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.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
---
 man/Makefile.am | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/man/Makefile.am b/man/Makefile.am
index 25202e2..d25a293 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -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 =
-- 
1.8.1.1

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH] man: Fix typo and use $() for make expressions
  2013-01-18 12:22 [PATCH] man: Fix typo and use $() for make expressions Thierry Reding
@ 2013-01-18 16:00 ` David Herrmann
  2013-01-18 16:01   ` David Herrmann
  2013-01-21  6:52   ` Thierry Reding
  0 siblings, 2 replies; 10+ messages in thread
From: David Herrmann @ 2013-01-18 16:00 UTC (permalink / raw)
  To: Thierry Reding; +Cc: dri-devel

Hi Thierry

On Fri, Jan 18, 2013 at 1:22 PM, Thierry Reding
<thierry.reding@avionic-design.de> wrote:
> 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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] man: Fix typo and use $() for make expressions
  2013-01-18 16:00 ` David Herrmann
@ 2013-01-18 16:01   ` David Herrmann
  2013-01-18 16:54     ` Jesse Barnes
  2013-01-20  6:39     ` Mark Zhang
  2013-01-21  6:52   ` Thierry Reding
  1 sibling, 2 replies; 10+ messages in thread
From: David Herrmann @ 2013-01-18 16:01 UTC (permalink / raw)
  To: Thierry Reding; +Cc: dri-devel

On Fri, Jan 18, 2013 at 5:00 PM, David Herrmann
<dh.herrmann@googlemail.com> wrote:
> Hi Thierry
>
> On Fri, Jan 18, 2013 at 1:22 PM, Thierry Reding
> <thierry.reding@avionic-design.de> wrote:
>> 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.

Ah sorry, I now saw the "subs" => "subst" typo. Still I wonder why
distcheck works here. But the patch looks fine. Thanks!

> Regards
> David

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] man: Fix typo and use $() for make expressions
  2013-01-18 16:01   ` David Herrmann
@ 2013-01-18 16:54     ` Jesse Barnes
  2013-01-25 15:54       ` David Herrmann
  2013-01-20  6:39     ` Mark Zhang
  1 sibling, 1 reply; 10+ messages in thread
From: Jesse Barnes @ 2013-01-18 16:54 UTC (permalink / raw)
  To: David Herrmann; +Cc: dri-devel

On Fri, 18 Jan 2013 17:01:59 +0100
David Herrmann <dh.herrmann@googlemail.com> wrote:

> On Fri, Jan 18, 2013 at 5:00 PM, David Herrmann
> <dh.herrmann@googlemail.com> wrote:
> > Hi Thierry
> >
> > On Fri, Jan 18, 2013 at 1:22 PM, Thierry Reding
> > <thierry.reding@avionic-design.de> wrote:
> >> 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.
> 
> 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.

-- 
Jesse Barnes, Intel Open Source Technology Center

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] man: Fix typo and use $() for make expressions
  2013-01-18 16:01   ` David Herrmann
  2013-01-18 16:54     ` Jesse Barnes
@ 2013-01-20  6:39     ` Mark Zhang
  2013-01-20  9:17       ` David Herrmann
  1 sibling, 1 reply; 10+ messages in thread
From: Mark Zhang @ 2013-01-20  6:39 UTC (permalink / raw)
  To: David Herrmann; +Cc: dri-devel

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
On 01/19/2013 12:01 AM, David Herrmann wrote:
> On Fri, Jan 18, 2013 at 5:00 PM, David Herrmann
> <dh.herrmann@googlemail.com> wrote:
>> Hi Thierry
>>
>> On Fri, Jan 18, 2013 at 1:22 PM, Thierry Reding
>> <thierry.reding@avionic-design.de> wrote:
>>> 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.
> 
> Ah sorry, I now saw the "subs" => "subst" typo. Still I wonder why
> distcheck works here. But the patch looks fine. Thanks!
> 
>> Regards
>> David
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
> 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] man: Fix typo and use $() for make expressions
  2013-01-20  6:39     ` Mark Zhang
@ 2013-01-20  9:17       ` David Herrmann
  2013-01-20  9:41         ` Mark Zhang
  0 siblings, 1 reply; 10+ messages in thread
From: David Herrmann @ 2013-01-20  9:17 UTC (permalink / raw)
  To: Mark Zhang; +Cc: dri-devel

Hi Mark

On Sun, Jan 20, 2013 at 7:39 AM, Mark Zhang <nvmarkzhang@gmail.com> wrote:
> 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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] man: Fix typo and use $() for make expressions
  2013-01-20  9:17       ` David Herrmann
@ 2013-01-20  9:41         ` Mark Zhang
  0 siblings, 0 replies; 10+ messages in thread
From: Mark Zhang @ 2013-01-20  9:41 UTC (permalink / raw)
  To: David Herrmann; +Cc: dri-devel

Thanks, David.

After "sudo apt-get install docbook-xsl" and configure the libdrm with
"--enable-manpages", I see the manpages generated.

Mark
On 01/20/2013 05:17 PM, David Herrmann wrote:
> Hi Mark
> 
> On Sun, Jan 20, 2013 at 7:39 AM, Mark Zhang <nvmarkzhang@gmail.com> wrote:
>> 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
> 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] man: Fix typo and use $() for make expressions
  2013-01-18 16:00 ` David Herrmann
  2013-01-18 16:01   ` David Herrmann
@ 2013-01-21  6:52   ` Thierry Reding
  1 sibling, 0 replies; 10+ messages in thread
From: Thierry Reding @ 2013-01-21  6:52 UTC (permalink / raw)
  To: David Herrmann; +Cc: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 611 bytes --]

On Fri, Jan 18, 2013 at 05:00:34PM +0100, David Herrmann wrote:
[...]
> 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)

[-- Attachment #1.2: Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] man: Fix typo and use $() for make expressions
  2013-01-18 16:54     ` Jesse Barnes
@ 2013-01-25 15:54       ` David Herrmann
  2013-01-25 21:47         ` Jesse Barnes
  0 siblings, 1 reply; 10+ messages in thread
From: David Herrmann @ 2013-01-25 15:54 UTC (permalink / raw)
  To: Jesse Barnes; +Cc: dri-devel

Hi Jesse

On Fri, Jan 18, 2013 at 5:54 PM, Jesse Barnes <jbarnes@virtuousgeek.org> wrote:
> On Fri, 18 Jan 2013 17:01:59 +0100
> David Herrmann <dh.herrmann@googlemail.com> wrote:
>
>> On Fri, Jan 18, 2013 at 5:00 PM, David Herrmann
>> <dh.herrmann@googlemail.com> wrote:
>> > Hi Thierry
>> >
>> > On Fri, Jan 18, 2013 at 1:22 PM, Thierry Reding
>> > <thierry.reding@avionic-design.de> wrote:
>> >> 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.
>>
>> 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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] man: Fix typo and use $() for make expressions
  2013-01-25 15:54       ` David Herrmann
@ 2013-01-25 21:47         ` Jesse Barnes
  0 siblings, 0 replies; 10+ messages in thread
From: Jesse Barnes @ 2013-01-25 21:47 UTC (permalink / raw)
  To: David Herrmann; +Cc: dri-devel

On Fri, 25 Jan 2013 16:54:11 +0100
David Herrmann <dh.herrmann@googlemail.com> wrote:

> Hi Jesse
> 
> On Fri, Jan 18, 2013 at 5:54 PM, Jesse Barnes <jbarnes@virtuousgeek.org> wrote:
> > On Fri, 18 Jan 2013 17:01:59 +0100
> > David Herrmann <dh.herrmann@googlemail.com> wrote:
> >
> >> On Fri, Jan 18, 2013 at 5:00 PM, David Herrmann
> >> <dh.herrmann@googlemail.com> wrote:
> >> > Hi Thierry
> >> >
> >> > On Fri, Jan 18, 2013 at 1:22 PM, Thierry Reding
> >> > <thierry.reding@avionic-design.de> wrote:
> >> >> 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.
> >>
> >> 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.

-- 
Jesse Barnes, Intel Open Source Technology Center

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-01-25 21:47 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-18 12:22 [PATCH] man: Fix typo and use $() for make expressions Thierry Reding
2013-01-18 16:00 ` David Herrmann
2013-01-18 16:01   ` David Herrmann
2013-01-18 16:54     ` Jesse Barnes
2013-01-25 15:54       ` David Herrmann
2013-01-25 21:47         ` Jesse Barnes
2013-01-20  6:39     ` Mark Zhang
2013-01-20  9:17       ` David Herrmann
2013-01-20  9:41         ` Mark Zhang
2013-01-21  6:52   ` Thierry Reding

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.