refining implementation of pmake