What is the exact role of the DEPENDS in Makefile?

1.7k views Asked by At

Here is a sample of my Makefile.

define Package/luci-app-myapp
   SECTION:=luci
   CATEGORY:=LuCI
   SUBMENU:=3. Applications
   TITLE:=GUI for myapp package
   PKGARCH:=all
   DEPENDS:=+myapp
endef

What is the exact role of the DEPENDS in this Makefile? And what elements can be the value of the DEPENDS?

1

There are 1 answers

1
VivekD On BEST ANSWER

DEPENDS is basically a variable. In openwrt this variable is used to define dependency between the packages. Detailed use of this variable is documented in openwrt link