Cleanup logging control by makefile