Makefile: improve non-GNU make warning behavior