refine Makefile to support build subdir