I have BSDmakefile and GNUmakefile which are pretty much identical except for dependency management.
GNUmake file:
ifneq ($(MAKECMDGOALS), "clean")
-include $(dependencies)
endif
BSDmake File:
.for i in $(dependencies)
.sinclude "${i}"
.endfor
Is there a way to do this so that I can determine if I am running gmake or bsdmake and then execute the appropriate include statements based on this? I remember someone taking advantage of the fad in both makefile processors so that they could achieve a similar effect.
Alternatively, if there is a better approach than this, I would like to know! (switching to SCons or CMake does not work!)
Thank!
source
share