X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=Makefile;h=024a139330d28eb59b6b674c76c1e6d95f2a33b1;hb=988a7c482ce1c7685816b238ac776b03c237ed8e;hp=35190a1c90b503d931fd8786430e374e0b44d11b;hpb=eef4d99bcd0ad868145af76ca1ad2595ecc3ad19;p=vpp.git diff --git a/Makefile b/Makefile index 35190a1c90b..024a139330d 100644 --- a/Makefile +++ b/Makefile @@ -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