提交 9ce05238 编写于 作者: L Lucas Meneghel Rodrigues

Merge pull request #780 from ldoktor/make_link

RFC: Makefile: Move "make link" to plugins
...@@ -3,6 +3,7 @@ DESTDIR=/ ...@@ -3,6 +3,7 @@ DESTDIR=/
BUILDIR=$(CURDIR)/debian/avocado BUILDIR=$(CURDIR)/debian/avocado
PROJECT=avocado PROJECT=avocado
VERSION=`$(CURDIR)/avocado/core/version.py` VERSION=`$(CURDIR)/avocado/core/version.py`
AVOCADO_PLUGINS=$(filter-out ../avocado/Makefile, $(wildcard ../*/Makefile))
all: all:
@echo "make source - Create source package" @echo "make source - Create source package"
...@@ -59,15 +60,9 @@ clean: ...@@ -59,15 +60,9 @@ clean:
rm -f man/avocado-rest-client.1 rm -f man/avocado-rest-client.1
rm -rf docs/build rm -rf docs/build
find docs/source/api/ -name '*.rst' -delete find docs/source/api/ -name '*.rst' -delete
test -L avocado/virt && rm -f avocado/virt || true for MAKEFILE in $(AVOCADO_PLUGINS);\
test -L avocado/core/plugins/virt.py && rm -f avocado/core/plugins/virt.py || true do make -f $$MAKEFILE unlink &>/dev/null && echo ">> UNLINK $$MAKEFILE" || echo ">> SKIP $$MAKEFILE";\
test -L avocado/core/plugins/virt_bootstrap.py && rm -f avocado/core/plugins/virt_bootstrap.py || true done
test -L etc/avocado/conf.d/virt.conf && rm -f etc/avocado/conf.d/virt.conf || true
test -L avocado/core/plugins/vt.py && rm -f avocado/core/plugins/vt.py || true
test -L avocado/core/plugins/vt_list.py && rm -f avocado/core/plugins/vt_list.py || true
test -L avocado/core/plugins/vt_bootstrap.py && rm -f avocado/core/plugins/vt_bootstrap.py || true
test -L etc/avocado/conf.d/vt.conf && rm -f etc/avocado/conf.d/vt.conf || true
test -L virttest && rm -f virttest || true
install-requirements-all: install-requirements install-requirements-selftests install-requirements-all: install-requirements install-requirements-selftests
...@@ -86,20 +81,10 @@ check_cyclical: ...@@ -86,20 +81,10 @@ check_cyclical:
modules_boundaries: modules_boundaries:
selftests/modules_boundaries selftests/modules_boundaries
link: link_virt link_vt link:
for MAKEFILE in $(AVOCADO_PLUGINS);\
link_virt: do make -f $$MAKEFILE link &>/dev/null && echo ">> LINK $$MAKEFILE" || echo ">> SKIP $$MAKEFILE";\
test -d ../avocado-virt/avocado/virt && ln -sf ../../avocado-virt/avocado/virt avocado || true done
test -f ../avocado-virt/etc/avocado/conf.d/virt.conf && ln -sf ../../../../avocado-virt/etc/avocado/conf.d/virt.conf etc/avocado/conf.d/ || true
test -f ../avocado-virt/avocado/core/plugins/virt.py && ln -sf ../../../../avocado-virt/avocado/core/plugins/virt.py avocado/core/plugins/ || true
test -f ../avocado-virt/avocado/core/plugins/virt_bootstrap.py && ln -sf ../../../../avocado-virt/avocado/core/plugins/virt_bootstrap.py avocado/core/plugins/ || true
link_vt:
test -f ../avocado-vt/etc/avocado/conf.d/vt.conf && ln -sf ../../../../avocado-vt/etc/avocado/conf.d/vt.conf etc/avocado/conf.d/ || true
test -f ../avocado-vt/avocado/core/plugins/vt.py && ln -sf ../../../../avocado-vt/avocado/core/plugins/vt.py avocado/core/plugins/ || true
test -f ../avocado-vt/avocado/core/plugins/vt_list.py && ln -sf ../../../../avocado-vt/avocado/core/plugins/vt_list.py avocado/core/plugins/ || true
test -f ../avocado-vt/avocado/core/plugins/vt_bootstrap.py && ln -sf ../../../../avocado-vt/avocado/core/plugins/vt_bootstrap.py avocado/core/plugins/ || true
test -d ../avocado-vt/virttest && ln -sf ../avocado-vt/virttest . || true
man: man/avocado.1 man/avocado-rest-client.1 man: man/avocado.1 man/avocado-rest-client.1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册