Either clone or pull with matching echo, quiet execution.
# atomically create file by command
cmdsave = @echo $1 $2 \>$@; $1 $2 | sponge $@
# download git checkout
# atomically create file by command
cmdsave = @echo $1 $2 \>$@; $1 $2 | sponge $@
# download git checkout
-gitsave = @echo git pull or clone $@; \
- [ -r $@/.git ] && cd $@ && git pull --ff-only || true; \
- [ -e $@ ] || git clone "$1" $@
+gitsave = @if cd $@ 2>/dev/null; \
+ then echo git pull $@; git pull -q --ff-only || true; \
+ else echo git clone $1 $@; git clone -q --progress $1 $@; fi
sitemap.xml: tools/mksitemap
$(call cmdsave,$<)
sitemap.xml: tools/mksitemap
$(call cmdsave,$<)