I would like to detect the build target, i.e. make
or build
, in a build event.
I have pre-build event that compiles a number of C files into objects (.obj) which are then included in one of my Pascal files. At the moment the C files are compiled every time the pre-build event runs. I would like to be able to skip this stage if the build target is make
and if the objects are up-to-date.
Being able to skip this stage would give me significant reductions in compile time whilst in edit/compile/debug development mode.
So, is it possible to detect the build target?