commit 03bd65562a wrongly placed the logic conditional on $(TARGET) before inclusion of config.mak, so that it only worked when TARGET was set from the make command line or environment. reorder to fix.
03bd65562a