"make bin/xxx DEBUG=yyy,zzz" now works seemingly perfectly. :)
authorMichael Brown <mcb30@etherboot.org>
Mon, 18 Apr 2005 14:16:13 +0000 (14:16 +0000)
committerMichael Brown <mcb30@etherboot.org>
Mon, 18 Apr 2005 14:16:13 +0000 (14:16 +0000)
src/Makefile.housekeeping

index 9c8f28b..70c716a 100644 (file)
@@ -258,10 +258,11 @@ $(BIN)/%.info :
 # changes.
 #
 BLIB_LIST      = $(BIN)/.blib.list
-.PHONY : always_check_blib_list
-$(BLIB_LIST) : always_check_blib_list
-       @[ "$(shell cat $@)" = "$(BLIB_OBJS)" ] || echo "$(BLIB_OBJS)" > $@
-.SECONDARY : $(BLIB_LIST)
+ifneq ($(shell cat $(BLIB_LIST)),$(BLIB_OBJS))
+$(shell echo "$(BLIB_OBJS)" > $(BLIB_LIST))
+endif
+
+$(BLIB_LIST) :
 
 # Library of all objects
 #