[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Mingw-cross-env-list] libtoolize is glibtoolize on OSX
From: |
Volker Grabsch |
Subject: |
Re: [Mingw-cross-env-list] libtoolize is glibtoolize on OSX |
Date: |
Sun, 7 Feb 2010 15:12:35 +0100 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Tony Theodore <address@hidden> schrieb:
> Attached patch sets a LIBTOOLIZE variable along the same lines as gsed
> and ginstall - needed for OSX (and probably FreeBSD).
Thanks! Included.
http://hg.savannah.gnu.org/hgweb/mingw-cross-env/rev/19a838c7da96
> Out of curiosity, why does TMP_DIR use = instead of := ?
In short, it's because TMP_DIR is a template and not a
constant.
------------------------------------------------------------------
$(TMP_DIR) needs to be evaluated on each occurence ("TMP_DIR = ..."),
rather than once and for all ("TMP_DIR := ...").
$(TMP_DIR) references "$(1)":
TMP_DIR = $(PWD)/tmp-$(1)
which is set to a different value on each evaluation via $(call ...):
$(call TMP_DIR,$(PKG))
where $(PKG) is iterated over the list of packages via the $(foreach ...)
macro:
$(foreach PKG, ..., ... $(call TMP_DIR,$(PKG)) ...)
------------------------------------------------------------------
Of course, I could have used a prefix and a suffix variable instead,
such as:
TMP_DIR_PREFIX := $(PWD)/tmp-
TMP_DIR_SUFFIX :=
But I thought a template was more clear:
TMP_DIR = $(PWD)/tmp-$(1)
Greets,
Volker
--
Volker Grabsch
---<<(())>>---
Administrator
NotJustHosting GbR