UBUNTU: [Config] Clean up tools rules
authorTim Gardner <tim.gardner@canonical.com>
Tue, 9 Aug 2011 16:52:25 +0000 (10:52 -0600)
committerLeann Ogasawara <leann.ogasawara@canonical.com>
Mon, 2 Apr 2012 20:10:26 +0000 (13:10 -0700)
There is no stem '$*' with which to match the automatic variable '%'.

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>

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

index c151542..c16459b 100644 (file)
@@ -355,17 +355,17 @@ $(stampdir)/stamp-flavours:
 $(stampdir)/stamp-prepare-perarch:
        @echo "Preparing perarch ..."
 ifeq ($(do_tools),true)
-       rm -rf $(builddir)/tools-$*
-       install -d $(builddir)/tools-$*
-       for i in *; do ln -s $(CURDIR)/$$i $(builddir)/tools-$*/; done
-       rm $(builddir)/tools-$*/tools
-       rsync -a tools/ $(builddir)/tools-$*/tools/
+       rm -rf $(builddir)/tools
+       install -d $(builddir)/tools
+       for i in *; do ln -s $(CURDIR)/$$i $(builddir)/tools/; done
+       rm $(builddir)/tools/tools
+       rsync -a tools/ $(builddir)/tools/tools/
 endif
        touch $@
 
 $(stampdir)/stamp-build-perarch: prepare-perarch
 ifeq ($(do_tools),true)
-       cd $(builddir)/tools-$*/tools/perf && make $(CROSS_COMPILE)
+       cd $(builddir)/tools/tools/perf && make $(CROSS_COMPILE)
 endif
        @touch $@
 
@@ -374,7 +374,7 @@ install-perarch: $(stampdir)/stamp-build-perarch
        # Add the tools.
 ifeq ($(do_tools),true)
        install -d $(toolspkgdir)/usr/bin
-       install -s -m755 $(builddir)/tools-$*/tools/perf/perf \
+       install -s -m755 $(builddir)/tools/tools/perf/perf \
                $(toolspkgdir)/usr/bin/perf_$(abi_release)
 endif