2 ms·
Quick feedback: There should be a BINARY_NAME target that 'run' depends on instead of repeating the build command. The source files should be named as depende
by humanrebar 9y ago
Quick feedback:
There should be a BINARY_NAME target that 'run' depends on instead of repeating the build command.
The source files should be named as dependencies when they are inputs to a build step.
Anything that isn't a file should be listed as .PHONY target. Otherwise, make gets confused if you, for example, create a directory named 'test'.
If the goal of your makefile is to make your workflow simpler and easier to discover, consider adding a 'help' target that at least describes the interesting targets. It might also direct users to a more involved explanation if there are interesting things about your project they need to know about.