Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makefile: Don't rebuild targets multiple times on parallel build.
The nets Makefile previously called the "all" target in the net_imap sub-Makefile, which in turn would build all the files in that subdirectory. However, this resulted in duplicate builds when parallelizing a build (e.g. make -j2), since the net_imap/%.o target would get called multiple times (depending on -j number), which effectively called $(SUBMAKE) -C net_imap all multiple times. Instead of doing this, call the specific target name in the sub-Makefile instead, so that the nets Makefile only rebuilds an individual target.
- Loading branch information