fix parallel build failures
authorRobin H. Johnson <robbat2@gentoo.org>
Tue, 23 Jan 2018 22:57:55 +0000 (17:57 -0500)
committerJens Axboe <axboe@kernel.dk>
Tue, 23 Jan 2018 22:59:13 +0000 (15:59 -0700)
commit519fd9a5d08d85f3d9cb4192d624fe8351e40232
tree6dbeff81198e3c6eb8a465fff8ce60a7dfabe2c5
parentd1398e339585f6750f7158c50c98861b68dddc8b
fix parallel build failures

When building in parallel, the btreplay/btrecord and btreplay/btreplay
targets cause make to kick off two jobs for `make -C btreplay` and they
sometimes end up clobbering each other.  We could fix this by making one
a dependency of the other, but it's a bit cleaner to refactor things to
be based on subdirs.  This way changes in subdirs also get noticed:
  $ touch btreplay/*.[ch]
  $ make
  <btreplay is now correctly updated>

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Makefile