cri-dockerd icon indicating copy to clipboard operation
cri-dockerd copied to clipboard

Consolidate Makefiles

Open nwneisen opened this issue 2 years ago • 0 comments

Expected Behavior

A Makefile exists in the root of the project that imports Makefile values and targets from other mk files.

We should try to move the project towards being organized using the standard go project layout. This would have us moving our imported mk files to the build/ directory along with the packaging directory.

Suggested project reorganization:

build/   packaging/*   common.mk -> Move high level Makefile vars here   packaging.mk -> Current packaging/Makefile ~~packaging/~~ Makefile -> Import the build/*.mk files

Since we are currently placing our build artifacts in the build directory, we should instead output them to the bin directory as is common practice with many projects. We should also eliminate any duplicate build artifacts.

Actual Behavior

We currently have Makefiles in multiple locations throughout the project with duplicated targets and variables. This is not the end of the world but it there are now multiple different ways to build different artifacts for the project.

nwneisen avatar Oct 11 '23 04:10 nwneisen