Makefiles commonly need to include files. Sometimes they need to optionally include a file. There is currently no standard way of including an optional file in FreeBSD make that also works with other make systems. NetBSD have updated their make so that either sinclude or -include directives work in Makefiles. Fix: Attached is a patch that mirrors the fix found in NetBSD make. Patch attached with submission follows:
Apart from the fact that the patch isn't style(9) conformant, I think this is a worthy enhancement to have in make(1). Why hasn't it been integrated yet (and FWIW why is it under standards/ anyhow)? Thanks! -Garrett
This feature is available in later versions of fmake and in bmake (which is now the default make in 11-CURRENT). Please mark this bug resolved fixed.
POSIX does not describe *any* mechanism for includes in Makefiles, so reassigning this from standards.
Indeed. It was discussed a couple years ago but never made it into an official standard: http://article.gmane.org/gmane.comp.standards.posix.austin.general/3225/match=sinclude
Fixed in all supported versions of FreeBSD after bmake import.