Add rules to ensure that the libgst.la and libgstelements.la exist when trying to link the scanner with them.
Add rules to ensure that the libgst.la and libgstelements.la exist when trying to link the scanner with them.

Original commit message from CVS:
Add rules to ensure that the libgst.la and libgstelements.la exist when
trying to link the scanner with them.
Fix mkdirs so that they don't fall over if directories already exist.

drothlis/gstreamer,lubosz/gstreamer,krieger-od/gstreamer,shelsonjava/gstreamer,cfoch/gstreamer,krichter722/gstreamer,mparis/gstreamer,Lachann/gstreamer,mrchapp/gstreamer,Distrotech/gstreamer,mparis/gstreamer,Distrotech/gstreamer,lubosz/gstreamer,magcius/gstreamer,jpakkane/gstreamer,krieger-od/gstreamer,collects/gstreamer,Lachann/gstreamer,ensonic/gstreamer,lovebug356/gstreamer,mrchapp/gstreamer,collects/gstreamer,lovebug356/gstreamer,ahmedammar/platform_external_gst_gstreamer,lubosz/gstreamer,jpakkane/gstreamer,centricular/gstreamer,Lachann/gstreamer,StreamUtils/gstreamer,drothlis/gstreamer,mrchapp/gstreamer,surround-io/gstreamer,cablelabs/gstreamer,krichter722/gstreamer,ylatuya/gstreamer,ensonic/gstreamer,StreamUtils/gstreamer,krichter722/gstreamer,cfoch/gstreamer,cablelabs/gstreamer,ylatuya/gstreamer,ylatuya/gstreamer,magcius/gstreamer,ahmedammar/platform_external_gst_gstreamer,shelsonjava/gstreamer,jpxiong/gstreamer,ensonic/gstreamer,Lachann/gstreamer,krichter722/gstreamer,jpxiong/gstreamer,centricular/gstreamer,ahmedammar/platform_external_gst_gstreamer,collects/gstreamer,surround-io/gstreamer,ylatuya/gstreamer,mparis/gstreamer,StreamUtils/gstreamer,ahmedammar/platform_external_gst_gstreamer,mrchapp/gstreamer,cfoch/gstreamer,Distrotech/gstreamer,surround-io/gstreamer,justinjoy/gstreamer,ensonic/gstreamer,krieger-od/gstreamer,mparis/gstreamer,cfoch/gstreamer,jpakkane/gstreamer,shelsonjava/gstreamer,collects/gstreamer,surround-io/gstreamer,justinjoy/gstreamer,lovebug356/gstreamer,magcius/gstreamer,justinjoy/gstreamer,cablelabs/gstreamer,ahmedammar/platform_external_gst_gstreamer,krichter722/gstreamer,cablelabs/gstreamer,mrchapp/gstreamer,lubosz/gstreamer,justinjoy/gstreamer,centricular/gstreamer,shelsonjava/gstreamer,jpakkane/gstreamer,drothlis/gstreamer,magcius/gstreamer,cablelabs/gstreamer,StreamUtils/gstreamer,Distrotech/gstreamer,StreamUtils/gstreamer,mparis/gstreamer,Distrotech/gstreamer,Lachann/gstreamer,centricular/gstreamer,jpxiong/gstreamer,justinjoy/gstreamer,cfoch/gstreamer,centricular/gstreamer,magcius/gstreamer,lubosz/gstreamer,drothlis/gstreamer,lovebug356/gstreamer,lovebug356/gstreamer,krieger-od/gstreamer,shelsonjava/gstreamer,jpxiong/gstreamer,ylatuya/gstreamer,krieger-od/gstreamer,drothlis/gstreamer,ensonic/gstreamer,jpakkane/gstreamer,collects/gstreamer,surround-io/gstreamer,jpxiong/gstreamer