From patchwork Sat Feb 28 00:54:02 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geoff Levand X-Patchwork-Id: 23856 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id D98F4DDF1E for ; Sat, 28 Feb 2009 12:08:00 +1100 (EST) X-Original-To: cbe-oss-dev@ozlabs.org Delivered-To: cbe-oss-dev@ozlabs.org Received: from hera.kernel.org (hera.kernel.org [140.211.167.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 4E095DDE07; Sat, 28 Feb 2009 11:59:51 +1100 (EST) Received: from hera.kernel.org (IDENT:U2FsdGVkX1+peuQf8qvSDL7pQwXpiavNw4dAeK5Gk0Y@localhost [127.0.0.1]) by hera.kernel.org (8.14.2/8.14.2) with ESMTP id n1S0xj2I016781 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 28 Feb 2009 00:59:45 GMT Received: (from geoff@localhost) by hera.kernel.org (8.14.2/8.13.1/Submit) id n1S0xipU016780; Sat, 28 Feb 2009 00:59:44 GMT Message-Id: <20090228005350.882694308@am.sony.com> References: <20090228005350.203477145@am.sony.com> In-reply-to: <20090228005350.203477145@am.sony.com> User-Agent: quilt/0.46-1 Date: Fri, 27 Feb 2009 16:54:02 -0800 From: Geoff Levand To: Jeremy Kerr Content-Disposition: inline; filename=makefile-makefile-deps.diff X-Virus-Scanned: ClamAV 0.93.3/9055/Fri Feb 27 20:16:01 2009 on hera.kernel.org X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, UNPARSEABLE_RELAY autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on hera.kernel.org X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (hera.kernel.org [127.0.0.1]); Sat, 28 Feb 2009 00:59:46 +0000 (UTC) Cc: cbe-oss-dev@ozlabs.org Subject: [Cbe-oss-dev] [patch 12/16] petitboot: Add makefile deps to makefile X-BeenThere: cbe-oss-dev@ozlabs.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Discussion about Open Source Software for the Cell Broadband Engine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: cbe-oss-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org Errors-To: cbe-oss-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org Add a dependency on the makefiles so a rebuild is done when they change. Signed-off-by: Geoff Levand --- rules.mk | 8 ++++++++ 1 file changed, 8 insertions(+) --- a/rules.mk +++ b/rules.mk @@ -47,6 +47,9 @@ ui_common_objs = ui/common/discover-clie ncurses_objs = twin_objs = ui/twin/pb-twin.o +# Makefiles +makefiles = Makefile $(top_srcdir)/rules.mk + # object collections lib_objs = $(list_objs) $(log_objs) $(protocol_objs) $(talloc_objs) \ $(waiter_objs) @@ -59,6 +62,7 @@ all: $(uis) $(daemons) # ncurses cui pb_cui_objs = $(client_objs) $(ncurses_objs) ui/ncurses/ps3-cui.o +$(pb_cui_objs): $(makefiles) $(pb_cui): LDFLAGS += -lncurses @@ -67,12 +71,14 @@ $(pb_cui): $(pb_cui_objs) # test ui pb_test_objs = $(client_objs) ui/test/pb-test.o +$(pb_test_objs): $(makefiles) $(pb_test): $(pb_test_objs) $(LINK.o) -o $@ $^ # twin gui pb_twin_objs = $(client_objs) $(twin_objs) ui/twin/ps3-twin.o +$(pb_twin_objs): $(makefiles) $(pb_twin): LDFLAGS+=$(twin_LDFLAGS) $(LIBTWIN) $(pb_twin): CFLAGS+=$(twin_CFLAGS) @@ -82,12 +88,14 @@ $(pb_twin): $(pb_twin_objs) # discovery daemon pb_discover_objs = $(daemon_objs) discover/pb-discover.o +$(pb_discover_objs): $(makefiles) $(pb_discover): $(pb_discover_objs) $(LINK.o) -o $@ $^ # parser-test parser_test_objs = $(parser_objs) test/parser-test.o +$(parser_test_objs): $(makefiles) $(parser_test): $(parser_test_objs) $(LINK.o) -o $@ $^