Re:A Simple Makefile for Medium-Sized C/C++ Projects
by gkya on Friday August 26, 2016 @10:56AM
(#12366702)
BSD make (bmake) and its .mk includes are really simple, it's basically make with batteries included. Many makefiles may be reduced to two lines while no new syntax is introduced:
PROG=${.CURDIR:T}
.include <prog.mk>
It indirectly extends original BSD make. There are some syntactic differences from GNU make, but no big depart.
See http://www.crufty.net/help/sjg/bmake.htm
Here is a custom BSDmakefile for my website, a more extensive example where the mk libraries can't apply: