Bug in Makefile based project builds

Discussion to talk about software related topics only.
Post Reply
Cheetah
Posts: 4
Joined: Thu Jan 19, 2012 8:20 am

Bug in Makefile based project builds

Post 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
Cheetah
Posts: 4
Joined: Thu Jan 19, 2012 8:20 am

Re: Bug in Makefile based project builds

Post by Cheetah »

This is still broken in the 2.6.0 beta
Post Reply