From adaff8ac204285eeaffd14b63e296ebdf8cf1c62 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Tue, 20 Oct 2009 20:13:32 +0200 Subject: [autogen] create automatic dependencies for packages that need to run autogen.sh Signed-off-by: Michael Olbrich Signed-off-by: Marc Kleine-Budde --- scripts/lib/ptxd_lib_dgen.awk | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'scripts/lib/ptxd_lib_dgen.awk') diff --git a/scripts/lib/ptxd_lib_dgen.awk b/scripts/lib/ptxd_lib_dgen.awk index 37c179839..5be1ddf16 100644 --- a/scripts/lib/ptxd_lib_dgen.awk +++ b/scripts/lib/ptxd_lib_dgen.awk @@ -242,6 +242,23 @@ END { print "$(STATEDIR)/" this_pkg ".targetinstall.post: " "$(STATEDIR)/" this_pkg ".targetinstall" > DGEN_DEPS_POST; } + # + # conditional dependency on autogen script + # + if (!(this_pkg ~ /^host-|^cross-/)) { + print "ifneq ($(" this_PKG "),)" > DGEN_DEPS_POST; + print "ifneq ($(call autogen_dep,$(" this_PKG ")),)" > DGEN_DEPS_POST; + } else { + target_PKG = gensub(/^HOST_/, "", "", this_PKG); + target_PKG = gensub(/^CROSS_/, "", "", target_PKG); + # host/cross packages inherit the package name xor have their own + print "ifneq ($(" this_PKG ")$(" target_PKG "),)" > DGEN_DEPS_POST; + print "ifneq ($(call autogen_dep,$(" this_PKG ")$(" target_PKG ")),)" > DGEN_DEPS_POST; + } + print "$(STATEDIR)/" this_pkg ".extract: $(STATEDIR)/autogen-tools" > DGEN_DEPS_POST; + print "endif" > DGEN_DEPS_POST; + print "endif" > DGEN_DEPS_POST; + # # add dep to pkgs we depend on # -- cgit v1.2.3