diff options
author | Geoff Levand <geoffrey.levand@am.sony.com> | 2009-02-27 14:54:02 +0000 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2009-03-23 21:48:40 +1100 |
commit | b90e4c95a69fcd5a561db71df940f0b5085b1c41 (patch) | |
tree | 58e782a395b3a0643e5af217274758719c7fa0bf /rules.mk | |
parent | c3fba67209e17941cd1024892c5f78c50ed3aecd (diff) | |
download | petitboot-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>
Diffstat (limited to 'rules.mk')
-rw-r--r-- | rules.mk | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 $@ $^ |