Skip to content

Commit

Permalink
Merge pull request avocado-framework#67 from ldoktor/make_link
Browse files Browse the repository at this point in the history
Makefile: Add link/unlink targets
  • Loading branch information
lmr committed Sep 10, 2015
2 parents 4f223ee + f0d2b9d commit ee4fa53
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,16 @@ clean:
$(MAKE) -f $(CURDIR)/debian/rules clean || true
rm -rf build/ MANIFEST BUILD BUILDROOT SPECS RPMS SRPMS SOURCES
find . -name '*.pyc' -delete

link:
ln -sf ../../avocado-virt/avocado/virt ../avocado/avocado
ln -sf ../../../../avocado-virt/etc/avocado/conf.d/virt.conf ../avocado/etc/avocado/conf.d/
ln -sf ../../../../avocado-virt/avocado/core/plugins/virt.py ../avocado/avocado/core/plugins/
ln -sf ../../../../avocado-virt/avocado/core/plugins/virt_bootstrap.py ../avocado/avocado/core/plugins/

unlink:
test -L ../avocado/avocado/virt && rm -f ../avocado/avocado/virt || true
test -L ../avocado/etc/avocado/conf.d/virt.conf && rm -f ../avocado/etc/avocado/conf.d/virt.conf || true
test -L ../avocado/avocado/core/plugins/virt.py && rm -f ../avocado/avocado/core/plugins/virt.py || true
test -L ../avocado/avocado/core/plugins/virt_bootstrap.py && rm -f ../avocado/avocado/core/plugins/virt_bootstrap.py || true

0 comments on commit ee4fa53

Please sign in to comment.