some adaptation to .make script