andreasgal/B2G — Issue #133: 'build' target has broken dependencies
Author: mvines
Created: 2012-01-16 19:09:01+00:00
State: open

Current target::

```
build: gecko gecko-install-hack gonk
```

Since there is no expressed dependency between the gecko-install-hack and gonk targets in the top-level Makefile, parallel makes can and will begin 'gonk' before completing 'gecko-install-hack'. This results in badness like a new system.img being constructed by 'gonk' and then getting whacked by 'gecko-install-hack'.

Here's one way to fix this

```
build: gecko-install-hack
$(MAKE) gonk
```

(gecko-install-hack already depends on gecko, so the gecko target can be dropped.)