I used this when I was trying to make the Makefile more efficient. A :=
assignment is done once, whereas = causes multiple substitutions. For
example
EXTRA_DIST with := has the substituted value and after its assignment, the
value of check_DATA is not looked up on subsequent uses of EXTRA_DIST. You
can even change the value of check_DATA and the value of EXTRA_DIST won't
change.
However, a problem with using := is that BSD doesn't understand it. So you
you want to go back to using = for portability that's fine.
On 7/12/07, Masatake YAMATO <je...@gy...> wrote:
>
> `:=' is used in emacs/Makefile.am. I cannot find any reason why `=' is
> not enough here. Could you tell me the reason?
>
> --- Makefile.am 22 Jan 2007 03:06:00 +0900 1.5
> +++ Makefile.am 12 Jul 2007 13:25:19 +0900
> @@ -15,11 +15,11 @@
> # Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA.
> #$Id: Makefile.am,v 1.5 2007/01/20 12:02:03 rockyb Exp $
>
> -check_DATA := bashdb-test.el bashdb-test.el.in elk-test.el
> -EXTRA_DIST := bashdb.el $(check_DATA)
> -ELCFILES := bashdb.elc
> +check_DATA = bashdb-test.el bashdb-test.el.in elk-test.el
> +EXTRA_DIST = bashdb.el $(check_DATA)
> +ELCFILES = bashdb.elc
> if INSTALL_EMACS_LISP
> -lisp_LISP := bashdb.el
> +lisp_LISP = bashdb.el
> endif
>
> test: check
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Bashdb-devel mailing list
> Bas...@li...
> https://lists.sourceforge.net/lists/listinfo/bashdb-devel
>
|