what is $(ps .. ) in zaptel makefile?

Kilian Krause kk@verfaction.de
Thu, 24 Feb 2005 14:14:56 +0100


--=-/YWWyMjtdYFcrVLe6DFO
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi Tzafrir,

Am Donnerstag, den 24.02.2005, 14:32 +0200 schrieb Tzafrir Cohen:
> Hi
>=20
> One of the current differences between my package and the deb is:
>=20
> diff -ur ./Makefile ../Debs/zaptel-1.0.4/Makefile
> --- ./Makefile  2005-02-19 14:37:35.000000000 +0200
> +++ ../Debs/zaptel-1.0.4/Makefile       2005-02-24 13:40:40.000000000 +02=
00
> @@ -38,11 +38,11 @@
>  ifeq (${BUILDVER},linux24)
>  #We only support DEVFS in linux 2.4 kernels, since its considered obsole=
te post 2.4
> -DYNFS=3D$(shell ps ax | grep -v grep | grep -q devfsd && echo "yes")
> +DYNFS=3D$(ps ax | grep -v grep | grep -q devfsd && echo "yes")
>  endif
>  ifeq (${BUILDVER},linux26)
>  #Tests for newer linux-2.6 udev support
> -DYNFS=3D$(shell ps ax | grep -v grep | grep udevd && echo "yes")
> +DYNFS=3D$(ps ax | grep -v grep | grep udevd && echo "yes")
>  endif
>=20
> BTW: is there something to gain from using :=3D in the asterisk makefiles=
,=20
> with the common use of $(shell ...) ?

Well, from the make infopage:
   Variables defined with `=3D' are "recursively expanded" variables.
Variables defined with `:=3D' are "simply expanded" variables; these
definitions can contain variable references which will be expanded
before the definition is made.  *Note The Two Flavors of Variables:
Flavors.
-(snip)-

I don't see a reason for either the "shell" to be removed, or the :=3D to
be introduced. Is there any known problem with the way we put it?
Especially for clarification it might be worth leaving the "shell" in
there, so it's easier to spot what happens, yet the effect should be
identical for both notations.

--=20
Best regards,
 Kilian

--=-/YWWyMjtdYFcrVLe6DFO
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Dies ist ein digital signierter Nachrichtenteil

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQBCHdNPvdkzt4X+wX8RArhbAJkBQ8GU8jlD5oDVXXC6lABHNKwDFgCfcf5G
XAVwVvlI5XC9BZCJ/PjJvBw=
=8IJd
-----END PGP SIGNATURE-----

--=-/YWWyMjtdYFcrVLe6DFO--