diff options
author | Damjan Marion <damarion@cisco.com> | 2016-02-25 16:26:01 +0100 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2016-02-25 15:55:23 +0000 |
commit | ebb27fb4809a51711e05323faccb15165e610e10 (patch) | |
tree | bbf807938a0b281386df4e69d31e5867c6bdd444 /Makefile | |
parent | 1c32a89ea4cfaf23e8a4d8b36293c7824cc3d748 (diff) |
add install-dep target to toplevel Makefile
Change-Id: I9dbe6676086ef083729bec1774f544498d1ec3e5
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -35,6 +35,7 @@ endif help: @echo "Make Targets:" @echo " bootstrap - prepare tree for build" + @echo " install-dep - install software dependencies" @echo " wipe - wipe all products of debug build " @echo " wipe-release - wipe all products of release build " @echo " build - build debug binaries" @@ -70,6 +71,7 @@ ifeq ("$(shell lsb_release -si)", "Ubuntu") @MISSING=$$(apt-get install -y -qq -s $(DEB_DEPENDS) | grep "^Inst ") ; \ if [ -n "$$MISSING" ] ; then \ echo "\nPlease install missing packages: \n$$MISSING\n" ; \ + echo "by executing \"make install-dep\"\n" ; \ exit 1 ; \ fi ; \ exit 0 @@ -93,6 +95,13 @@ endif bootstrap: $(BR)/.bootstrap.ok +install-dep: +ifeq ("$(shell lsb_release -si)", "Ubuntu") + @sudo apt-get install $(DEB_DEPENDS) +else + $(error "This option currently works only on Ubuntu systems") +endif + define make @make -C $(BR) V=$(V) PLATFORM=vpp TAG=$(1) $(2) endef |