I'm not sure if this has been reported by anyone, but the following makefile:
define _append
ifeq ($(filter $(1),$(AOEU)),)
AOEU += $(1)
endif
endef
append = $(eval $(call _append,$(1)))
ifndef aoeu
aoeu := 1
$(call append,aoeu)
endif
.PHONY: aoeu
aoeu:
@echo $(AOEU)
produces:
yapn:[EMAIL PROTECTED]:~/proj/aoeu> gmake aoeu
GNUmakefile:11: *** missing `endif'. Stop.
but take out the ifndef:
define _append
ifeq ($(filter $(1),$(AOEU)),)
AOEU += $(1)
endif
endef
append = $(eval $(call _append,$(1)))
aoeu := 1
$(call append,aoeu)
.PHONY: aoeu
aoeu:
@echo $(AOEU)
and it works fine:
yapn:[EMAIL PROTECTED]:~/proj/aoeu> gmake aoeu
aoeu
Any ideas?
Thanks,
Noel
--
NOTICE: If received in error, please destroy and notify sender. Sender does not waive
confidentiality or privilege, and use is prohibited.
_______________________________________________
Bug-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-make