Is the :u behaves normal or not (a bug) in the make?

2012-07-26 Thread Jeremy Messenger
Hello all,

While I was working on add the :build/:run feature in the
bsd.gnome.mk. I got a bug where it will running some dependencies got
duplicate. Thanks to the make(1) that shows me the :u feature to get
rid of the duplicates. But it doesn't exactly help unless I use the :O
to get the words in order to make the :u works. I am not sure if it's
just limited on how it works (normal) or it's a bug. Here's an example
test:

-
USE_TEST=   foo bar bar foobar foo
USE_TEST1=  foo bar bar foobar foo

test:
@${ECHO_CMD} USE_TEST:  ${USE_TEST:u}
@${ECHO_CMD} USE_TEST1:  ${USE_TEST1:O:u}
-

Here's result:
-
# make test
USE_TEST:  foo bar foobar foo
USE_TEST1:  bar foo foobar
-

Thanks,
Mezz


-- 
mezz.free...@gmail.com - m...@freebsd.org
FreeBSD GNOME Team
http://www.FreeBSD.org/gnome/ - gn...@freebsd.org
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Is the :u behaves normal or not (a bug) in the make?

2012-07-26 Thread Jeremy Messenger
On Thu, Jul 26, 2012 at 3:11 PM, Jeremy Messenger
mezz.free...@gmail.com wrote:
 Hello all,

 While I was working on add the :build/:run feature in the
 bsd.gnome.mk. I got a bug where it will running some dependencies got
 duplicate. Thanks to the make(1) that shows me the :u feature to get
 rid of the duplicates. But it doesn't exactly help unless I use the :O
 to get the words in order to make the :u works. I am not sure if it's
 just limited on how it works (normal) or it's a bug. Here's an example
 test:

 -
 USE_TEST=   foo bar bar foobar foo
 USE_TEST1=  foo bar bar foobar foo

 test:
 @${ECHO_CMD} USE_TEST:  ${USE_TEST:u}
 @${ECHO_CMD} USE_TEST1:  ${USE_TEST1:O:u}
 -

 Here's result:
 -
 # make test
 USE_TEST:  foo bar foobar foo
 USE_TEST1:  bar foo foobar
 -

BTW:

# uname -a
FreeBSD outlaws.localhost 9.0-STABLE FreeBSD 9.0-STABLE #0: Sat Mar 31
12:43:40 CDT 2012
mezz@outlaws.localhost:/usr/obj/usr/src/sys/GENERIC  amd64

 Thanks,
 Mezz


-- 
mezz.free...@gmail.com - m...@freebsd.org
FreeBSD GNOME Team
http://www.FreeBSD.org/gnome/ - gn...@freebsd.org
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Is the :u behaves normal or not (a bug) in the make?

2012-07-26 Thread Olli Hauer
On 2012-07-26 22:11, Jeremy Messenger wrote:
 Hello all,
 
 While I was working on add the :build/:run feature in the
 bsd.gnome.mk. I got a bug where it will running some dependencies got
 duplicate. Thanks to the make(1) that shows me the :u feature to get
 rid of the duplicates. But it doesn't exactly help unless I use the :O
 to get the words in order to make the :u works. I am not sure if it's
 just limited on how it works (normal) or it's a bug. Here's an example
 test:
 
 -
 USE_TEST= foo bar bar foobar foo
 USE_TEST1=foo bar bar foobar foo
 
 test:
   @${ECHO_CMD} USE_TEST:  ${USE_TEST:u}
   @${ECHO_CMD} USE_TEST1:  ${USE_TEST1:O:u}
 -
 
 Here's result:
 -
 # make test
 USE_TEST:  foo bar foobar foo
 USE_TEST1:  bar foo foobar
 -


It's normal, from man(1) make
 u  Remove adjacent duplicate words (like uniq(1)).

from man(1) uniq
 Repeated lines in the input will not be detected if they are
 not adjacent, so it may be necessary to sort the files first.

--
Regards,
olli
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Is the :u behaves normal or not (a bug) in the make?

2012-07-26 Thread Jeremy Messenger
On Thu, Jul 26, 2012 at 5:10 PM, Olli Hauer oha...@freebsd.org wrote:
 On 2012-07-26 22:11, Jeremy Messenger wrote:
 Hello all,

 While I was working on add the :build/:run feature in the
 bsd.gnome.mk. I got a bug where it will running some dependencies got
 duplicate. Thanks to the make(1) that shows me the :u feature to get
 rid of the duplicates. But it doesn't exactly help unless I use the :O
 to get the words in order to make the :u works. I am not sure if it's
 just limited on how it works (normal) or it's a bug. Here's an example
 test:

 -
 USE_TEST= foo bar bar foobar foo
 USE_TEST1=foo bar bar foobar foo

 test:
   @${ECHO_CMD} USE_TEST:  ${USE_TEST:u}
   @${ECHO_CMD} USE_TEST1:  ${USE_TEST1:O:u}
 -

 Here's result:
 -
 # make test
 USE_TEST:  foo bar foobar foo
 USE_TEST1:  bar foo foobar
 -


 It's normal, from man(1) make
  u  Remove adjacent duplicate words (like uniq(1)).

 from man(1) uniq
  Repeated lines in the input will not be detected if they are
  not adjacent, so it may be necessary to sort the files first.

Damn it, I missed that line! :-P Thanks!

Cheers,
Mezz


 --
 Regards,
 olli


-- 
mezz.free...@gmail.com - m...@freebsd.org
FreeBSD GNOME Team
http://www.FreeBSD.org/gnome/ - gn...@freebsd.org
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org