Hi Matthias,
Matthias Klose wrote:
> Currently dpkg-architecture and dpkg-parsechangelogs allow printing
> all key/value pairs with one invocation, while dpkg-buildflags just
> gives an error message without parameters. Please provide a mode
> that prints all flags (like dpkg-architecture). This way, a
> makefile/rules file only needs one invocation of dpkg-architecture
> and use use makefile magic to split out the needed values.
See dpkg-buildflags --export. e.g.:
success := $(shell dpkg-buildflags --export=make >build.flags && echo y)
ifneq ($(success), y)
$(error dpkg-buildflags failed)
endif
include build.flags
demo:
echo $(CFLAGS) $$CFLAGS
A naive
$(eval $(shell dpkg-buildflags --export=make))
unfortunately will not work because $(eval) converts newlines to
spaces.
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]