Makefile: Add bots target

Closes #12875
This commit is contained in:
Sanne Raymaekers 2019-09-23 16:45:54 +02:00 committed by Martin Pitt
parent 2426903acf
commit cea63000a4
2 changed files with 17 additions and 0 deletions

View file

@ -429,6 +429,17 @@ dist-xz: distdir
distcheck-hook::
$(srcdir)/tools/check-dist $(distdir)
# checkout Cockpit's bots for standard test VM images and API to launch them
# must be from master, as only that has current and existing images; but testvm.py API is stable
bots:
if [ ! -d bots ]; then \
git clone --depth=1 https://github.com/cockpit-project/bots.git; \
else \
cd bots && git fetch && git reset --hard origin/master; \
fi
.PHONY: bots
include po/Makefile.am
include pkg/Makefile.am
include src/base1/Makefile.am

View file

@ -105,5 +105,11 @@ if [ -z "${NOREDIRECTMAKEFILE:-}" ]; then
fi
fi
if [ ! -d bots ]; then
git clone --depth=1 https://github.com/cockpit-project/bots.git
else
cd bots && git fetch && git reset --hard origin/master
fi
echo
echo "Now type 'make' to compile $PKG_NAME."