GNU bug report logs -
#32269
AM_INIT_AUTOMAKE, subdir-objects, and $(DEPDIR) not being set correctly
Previous Next
Full log
Message #8 received at 32269 <at> debbugs.gnu.org (full text, mbox):
Since automake/autoconf are responsible for generating Makefiles, we could add something like:
val.%:
@$(if $(filter undefined,$(origin $*)),\
echo "$* undefined" >&2, \
echo '$(subst ','"'"',$($*))' \
)
var.%:
@$(if $(filter undefined,$(origin $*)),\
echo "$* undefined" >&2, \
echo "$*='"'$(subst ','"'\"'\"'"',$($*))'"'" \
)
toward the bottom. Then if we found a line matching /\$(\([^)]+\))/ then we could look up “val.\1” from the match, and substitute that back in. Obviously the more matches, the more iterations and the more “make -s val.\1” lookups. But at least it would work.
If we used a Perl helper, we could find ALL of the matches, and do ALL of the lookups at once in make for more constant time, since we’d do one make process per line regardless of how many substitutions were required.
This bug report was last modified 6 years and 327 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.