On Fri, 2012-10-26 at 10:54:51 +0200, Matthias Klose wrote: > On 25.10.2012 21:20, Guillem Jover wrote: > > Or just “$(shell dpkg-buildflags --export=configure)”? I do not really > > see a problem here. I might be missing something else going on, but > > otherwise I'll be closing this report in a bit. > > No. Doesn't work if the call depends on the loop variable. > > > (In addition using $(shell) allows to set a variables once per > > Makefile, and not once per loop.) > > Right, but that's needed for stuff like > > for p in $(filter-out $(PYTHON_DEFAULT), $(PYTHONS)) \ > ; do \ > dh_auto_configure --builddir=$(CURDIR)/debian/build-$$p \ > -- \ > $(BARE_CONFIG_FLAGS) \ > --disable-ruby \ > PYTHON=$$p \ > $$(DEB_CFLAGS_MAINT_APPEND=$$($$p-config --includes) > dpkg-buildflags --export=configure)"; \ > done
Ah ok, in that case you could use something like? ,--- for VAR in LIST; do \ eval "set `DEB_CFLAGS_MAINT_APPEND=$$VAR dpkg-buildflags --export=configure`"; \ CMD "$$@"; \ done `--- thanks, guillem -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org