initrd: Fix parallel build
authorAaron LI <aly@aaronly.me>
Mon, 2 Jul 2018 01:30:20 +0000 (09:30 +0800)
committerAaron LI <aly@aaronly.me>
Mon, 2 Jul 2018 02:04:01 +0000 (10:04 +0800)
commit7279052efaf1dc2bca86b53993d0d71ed106b308
tree2ef8d9612932090d7c566578f689101071a668d6
parentf5d8234e8535a5fbbccf83bdb9a832e1d5f36088
initrd: Fix parallel build

Add explicit target orders to oinit/Makefile, because such orders are
set in <bsd.subdir.mk> but not in <bsd.prog.mk>.

Since the make targets (e.g., depend, all, install, clean) are now
ordered, so remove 'clean cleandepend' from the same command as
'depend all install'.

Also allow defining the 'NO_CLEAN" variable to not clean previous builds.
initrd/Makefile
initrd/oinit/Makefile