bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gmake-3.80 bug?


From: Noel Yap
Subject: gmake-3.80 bug?
Date: Fri, 22 Aug 2003 18:16:27 -0400

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:address@hidden:~/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:address@hidden:~/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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]