Commit 13f99d15 authored by Florent Lamiraux's avatar Florent Lamiraux Committed by Florent Lamiraux florent@laas.fr
Browse files

[doc/Makefile] Add target fetch.

parent 876f5668
......@@ -364,6 +364,13 @@ log:
${MAKE} "$$child_dir".log; \
done
fetch:
@for child_dir in $$(ls ${SRC_DIR}); do \
test -d "$$child_dir" || continue; \
test -d "$$child_dir/.git" || continue; \
${MAKE} "$$child_dir".fetch; \
done
update:
@for child_dir in $$(ls ${SRC_DIR}); do \
test -d "$$child_dir" || continue; \
......@@ -378,6 +385,14 @@ update:
git clone ${GIT_QUIET} --recursive -b ${$(@:.checkout=)_branch} ${$(@:.checkout=)_repository}/$(@:.checkout=); \
fi \
%.fetch:
if [ "${$(@:.fetch=)_repository}" = "" ]; then \
echo "$(@:.fetch=) is not referenced"; \
else \
cd ${SRC_DIR}/$(@:.fetch=);\
git fetch ${GIT_QUIET} origin; \
fi
%.update:
if [ "${$(@:.update=)_repository}" = "" ]; then \
echo "$(@:.update=) is not referenced"; \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment