michael_J
michael_J

Reputation: 143

What's the usage of "depend" in makefile

$(obj)u-boot:           depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT)
                UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \
                sed  -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
                cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
                        --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
                        -Map u-boot.map -o u-boot

what does "depend" do here in the dependency line?

Upvotes: 0

Views: 362

Answers (1)

tripleee
tripleee

Reputation: 189297

In this example, depend seems to simply be an arbitrary label which identifies another target further down in the file.

Upvotes: 1

Related Questions