UBUNTU: [Config] Linearize and simplify tree preparation rules
authorTim Gardner <tim.gardner@canonical.com>
Mon, 22 Aug 2011 16:43:08 +0000 (10:43 -0600)
committerHerton Ronaldo Krzesinski <herton.krzesinski@canonical.com>
Tue, 27 Sep 2011 19:13:51 +0000 (16:13 -0300)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

debian/rules.d/2-binary-arch.mk
debian/rules.d/4-checks.mk

index 0c6a64b..bf8c439 100644 (file)
@@ -10,9 +10,7 @@ build_cd =
 build_O  = O=$(builddir)/build-$*
 endif
 
-prepare-%: $(stampdir)/stamp-prepare-%
-       @# Empty for make to be happy
-$(stampdir)/stamp-prepare-%: $(stampdir)/stamp-prepare-tree-% prepare-checks-%
+$(stampdir)/stamp-prepare-%: config-prepare-check-%
        @touch $@
 $(stampdir)/stamp-prepare-tree-%: target_flavour = $*
 $(stampdir)/stamp-prepare-tree-%: $(commonconfdir)/config.common.$(family) $(archconfdir)/config.common.$(arch) $(archconfdir)/config.flavour.%
@@ -30,7 +28,7 @@ $(stampdir)/stamp-prepare-tree-%: $(commonconfdir)/config.common.$(family) $(arc
 build-%: $(stampdir)/stamp-build-%
        @# Empty for make to be happy
 $(stampdir)/stamp-build-%: target_flavour = $*
-$(stampdir)/stamp-build-%: prepare-%
+$(stampdir)/stamp-build-%: $(stampdir)/stamp-prepare-%
        @echo "Building $*..."
        $(build_cd) $(kmake) $(build_O) $(conc_level) $(build_image)
        $(build_cd) $(kmake) $(build_O) $(conc_level) modules
index d1c0ad9..cc953b7 100644 (file)
@@ -26,5 +26,3 @@ config-prepare-check-%: $(stampdir)/stamp-prepare-tree-%
        @perl -f $(DROOT)/scripts/config-check \
                $(builddir)/build-$*/.config "$(arch)" "$*" "$(sharedconfdir)" "$(skipconfig)"
 
-prepare-checks-%: config-prepare-check-%
-       @# Will be calling more stuff later