summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeoff Levand <geoffrey.levand@am.sony.com>2009-02-27 14:54:02 +0000
committerJeremy Kerr <jk@ozlabs.org>2009-03-23 21:48:40 +1100
commitb90e4c95a69fcd5a561db71df940f0b5085b1c41 (patch)
tree58e782a395b3a0643e5af217274758719c7fa0bf
parentc3fba67209e17941cd1024892c5f78c50ed3aecd (diff)
downloadpetitboot-b90e4c95a69fcd5a561db71df940f0b5085b1c41.zip
petitboot-b90e4c95a69fcd5a561db71df940f0b5085b1c41.tar.gz
Add makefile deps to makefile
Add a dependency on the makefiles so a rebuild is done when they change. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
-rw-r--r--rules.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/rules.mk b/rules.mk
index c844c05..9b6d5ba 100644
--- a/rules.mk
+++ b/rules.mk
@@ -47,6 +47,9 @@ ui_common_objs = ui/common/discover-client.o
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 $@ $^
OpenPOWER on IntegriCloud