On Sat, Jun 05, 2010 at 12:08:34PM +0200, Remy Bohmer wrote: > When files in the projectroot directory are being used in install_copy() and > install_alternative() then there are no dependencies to these files. > > This is being solved by storing all dependencies of the targetinstall > stage in a seperate state/<package>.deps file. > These state/<package>.deps files are included in the top-level ptxdist > makefile > and this makes ptxdist properly handle the dependencies. [...] > for src in "${li...@]}"; do > if [ -e "${src}" ]; then > + # Since the dependency to the source files is dynamic we store > + # the dependency information in a dependency file that can be > + # included in the make files itself. > + deprule="${ptx_state_dir}/${pkg_label}.targetinstall: ${src}"
Could you change this to (untested): deprule="${ptx_state_dir}/${pkg_label}.targetinstall: \$(wildcard ${src})" targetinstall should fail (with a nice error message), if the file is not there, not some strange missing dpendency. mol > + > + # Make the deps rule robust for varying installation paths, and > + # make the deps rules file more readable. > + deprule=${deprule//${PTXDIST_TOPDIR}/\$(PTXDIST_TOPDIR)} > + deprule=${deprule//${PTXDIST_WORKSPACE}/\$(PTXDIST_WORKSPACE)} > + echo "${deprule}" >> ${pkg_xpkg_install_deps} > return > fi > done -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list ptxdist@pengutronix.de