rules.mk should not explicitly depend on $(BUILDDIR)
directly depending on actually created directories: $(OBJDIR) and $(LSTDIR) is better.
otherwise the Makefile is confused (and fails miserably) if someone else
creates by coincidence a directory named $(BUILDDIR) before.
See attached patch.
The patch causes the rule to be executed twice.
Hm, I cannot confirm that. Here (GNU Make 4.0, ARMCMx, GCC) it looks more or less ok? Folders are created once, and if no VERBOSE mode the message is also printed once.
Try parallel build, Eclipse does that when launching make.
Ah, I see.
Edit: See the newly attached patch...
Last edit: marvin3k 2015-04-23
Committed.