Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add shared project top-level Makefile
The project top-level Makefile accept the all, clean and clean-all targets and forward them to their sub-projects. Create a common Makefile include that can be used to implement this behavior. The shared Makefile collects all sub-directories that have a Makefile and then forwards the all, clean and clean-all targets to them. This is implemented by creating virtual targets for each combination of sub-project and all, clean, clean-all targets in the form of "$project/all", ... These virtual sub-targets are then listed as the prerequisites of the project top-level Makefile targets. This means there is no longer a need to re-generate top-level Makefiles when a new project or sub-project is added. It will also allow to remove a lot of boilerplate code. Signed-off-by: Lars-Peter Clausen <[email protected]>
- Loading branch information