未验证 提交 a7f45bea 编写于 作者: W Wei Jiangang 提交者: Lukáš Doktor

Makefile: implement make-requirements-plugins

Support `make requirements-plugins` to walk all sub-directories
like the same way `make link` works.
Signed-off-by: NWei Jiangang <weijg.fnst@cn.fujitsu.com>
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 83a3d602
......@@ -36,6 +36,7 @@ all:
@echo "Package requirements related targets"
@echo "requirements: Install runtime requirements"
@echo "requirements-selftests: Install runtime and selftests requirements"
@echo "requirements-plugins: Install plugins requirements"
@echo
@echo "Platform independent distribution/installtion related targets:"
@echo "source: Create source package"
......@@ -127,6 +128,11 @@ requirements:
requirements-selftests: requirements
- pip install -r requirements-selftests.txt
requirements-plugins: requirements
for MAKEFILE in $(AVOCADO_PLUGINS);\
do AVOCADO_DIRNAME=$(AVOCADO_DIRNAME) make -C $$MAKEFILE requirements &>/dev/null && echo ">> DONE $$MAKEFILE" || echo ">> SKIP $$MAKEFILE";\
done
smokecheck:
./scripts/avocado run passtest
......
......@@ -25,17 +25,17 @@ available).
Avocado supports various plugins, which are distributed as separate projects,
for example "avocado-vt" and "avocado-virt". These also need to be
deployed and linked in order to work properly with the avocado from
sources (installed version works out of the box). To simplify this
one can use `make link` Makefile target. The prerequisite is that you need
to put all the projects in the same parent directory. Then by running
`make link` inside the main avocado project you link and develop the
separated projects as well as avocado itself. The workflow could be::
sources (installed version works out of the box). To simplify this you can
use `make requirements-plugins` from the main avocado project to install
requirements of the plugins and `make link` to link and develop the
plugins. The workflow could be::
$ cd $AVOCADO_PROJECTS_DIR
$ git clone $AVOCADO_GIT
$ git clone $AVOCADO_PROJECT2
$ # Add more projects
$ cd avocado # go into the main avocado project dir
$ make requirements-plugins
$ make link
You should see the process and status for each directory.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册