I just downloaded the new version...
None of my pre-existing Makefiles work with the new version. They all die
with the following error:
*** Insufficient number of arguments (1) to function `addprefix'. Stop.
The error is caused by the following usage:
$(addprefix all__,$(SUBDIRS))::$(addprefix all__,)
If I add some whitespace in the last argument of the second addprefix,
$(addprefix all__,$(SUBDIRS))::$(addprefix all__, )
then things work fine. It appears that the function processing code is not
handling empty parameters correctly.
FYI, we use Imake to generate our makefiles, and the above is generated by a
rule like:
#define SubdirDeps(dirs,dep_dirs) @@\
$(addprefix all__,dirs)::$(addprefix all__,dep_dirs) @@\
commands for dirs
which can be instantiated in an Imakefile as
SubdirDeps($(SUBDIRS),) # No dependencies
or
SubdirDeps($(SUBDIRS),$(DEP_DIRS)) # Has dependencies
In the first form, since the 'dep_dirs' argument is nil, an empty argument is
presented to addprefix. This used to work -- I surely hope you can fix this.
Reid
--
Reid Madsen [EMAIL PROTECTED]
Senior Member, Tech. Staff (972) 536-3261 (Desk)
I2 Technologies (214) 850-9613 (Cellular)
--
If one synchronized swimmer drowns, do they all have to drown?