(config-stamp): If $(defs) contains multiple words, emit a #define line for

each.
This commit is contained in:
Ken Raeburn 1994-06-16 00:46:20 +00:00
parent 2e4ebfe2b0
commit 9a0d0964d8

View File

@ -311,7 +311,9 @@ config-stamp: Makefile
echo '#define TARGET_CANONICAL "$(target_canonical)"' >> config.new
echo '#define GAS_VERSION "$(VERSION)"' >> config.new
if [ "$(defs)" != "" ]; then \
echo '#define $(defs)' >> config.new ; \
for d in $(defs) ; do \
echo "#define $$d" >> config.new ; \
done ; \
else true; fi
echo '#endif /* TARGET_CPU */' >> config.new
$(srcdir)/../move-if-change config.new config.h