makefile mod, closes #411