6rd: Move to plugin
[vpp.git] / Makefile
index d3088d2..c3380e7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -53,7 +53,7 @@ endif
 
 .PHONY: help bootstrap wipe wipe-release build build-release rebuild rebuild-release
 .PHONY: run run-release debug debug-release build-vat run-vat pkg-deb pkg-rpm
-.PHONY: ctags cscope doxygen wipe-doxygen
+.PHONY: ctags cscope doxygen wipe-doxygen plugins plugins-release
 
 help:
        @echo "Make Targets:"
@@ -163,20 +163,22 @@ wipe-release: $(BR)/.bootstrap.ok
 rebuild-release: wipe-release build-release
 
 plugins: $(BR)/.bootstrap.ok
-       $(call make,$(PLATFORM)_debug,sample-plugin-install)
+       $(call make,$(PLATFORM)_debug,plugins-install)
 
 plugins-release: $(BR)/.bootstrap.ok
-       $(call make,$(PLATFORM),sample-plugin-install)
+       $(call make,$(PLATFORM),plugins-install)
 
 STARTUP_DIR ?= $(PWD)
 ifeq ("$(wildcard $(STARTUP_CONF))","")
 define run
        @echo "WARNING: STARTUP_CONF not defined or file doesn't exist."
        @echo "         Running with minimal startup config: $(MINIMAL_STARTUP_CONF)\n"
+       @sudo rm -f /dev/shm/vpe-api /dev/shm/db /dev/shm/global_vm
        @cd $(STARTUP_DIR) && sudo $(1) $(MINIMAL_STARTUP_CONF)
 endef
 else
 define run
+       @sudo rm -f /dev/shm/vpe-api /dev/shm/db /dev/shm/global_vm
        @cd $(STARTUP_DIR) && sudo $(1) -c $(STARTUP_CONF)
 endef
 endif