add target not only lib but also t & script