maybe you could add a more restrictive solution such as:

```diff
-  -rm -rf $(OBJECTDIR)
+  -rm -rf $(OBJECTDIR) $(CONTIKI_PROJECT).$(TARGET)
```

to avoid deleting not desired files :)