UBUNTU: [Config] Restore prepare-% target
authorTim Gardner <tim.gardner@canonical.com>
Wed, 24 Aug 2011 15:44:01 +0000 (09:44 -0600)
committerHerton Ronaldo Krzesinski <herton.krzesinski@canonical.com>
Tue, 27 Sep 2011 19:13:53 +0000 (16:13 -0300)
It turns out that some tossers like to shortcut the process during development.
A common sequence for a quick compile test is to preapre the tree, copy the
.config, then perform an in-tree compile. For example,

fakeroot debian/rules clean prepare-generic
cp debian/build/build-generic/.config .
make oldconfig scripts prepare
make M=`pwd`/fs/ext4

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

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

index 868f865..c0cf967 100644 (file)
@@ -24,6 +24,10 @@ $(stampdir)/stamp-prepare-tree-%: $(commonconfdir)/config.common.$(family) $(arc
        $(build_cd) $(kmake) $(build_O) -j1 silentoldconfig prepare scripts
        touch $@
 
+# Used by developers as a shortcut to prepare a tree for compilation.
+prepare-%: $(stampdir)/stamp-prepare-%
+       @echo Prepared $* for $(arch)
+
 # Do the actual build, including image and modules
 $(stampdir)/stamp-build-%: target_flavour = $*
 $(stampdir)/stamp-build-%: $(stampdir)/stamp-prepare-%