Page 1 of 1

Bug in Makefile based project builds

Posted: Wed Feb 01, 2012 12:00 pm
by Cheetah
I've found a bug in the Makefile based build system in the NNDK 2.5.2.

The $(NAME)depend.mk file will grow indefinitely (until you do a make clean) because of a minor bug in $(NBROOT)/make/main.mak. Line 76 has:

Code: Select all

@echo #Generated Depend file >$(NAME)depend.mk
The bug is that the # is interpreted by make, not the shell. The result is that a blank line is echoed to the console, instead of the message being used to truncate and "restart" the dependency file. The fix is simple, put quotes around the message:

Code: Select all

@echo "#Generated Depend file" >$(NAME)depend.mk

Re: Bug in Makefile based project builds

Posted: Fri Jul 06, 2012 6:27 pm
by Cheetah
This is still broken in the 2.6.0 beta