refine pmake, more simplely implement

Signed-off-by: James-Tu <57621080@qq.com>