tools: git output and pull fallback
[sheet.git] / Makefile
index 103a3be4fac806b6856aafd303808a1b3c3be62f..64e034bc5eab3c5e3cbb2a34b4b1215e6d937037 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -42,7 +42,8 @@ data/font/%.inc.pl: tools/mkttfinfo data/font/%.ttf
 
 data/xcolors/themes: data/xcolors
 data/xcolors:
-       [ -r $@/.git ] && cd $@ && git pull --ff-only
+       @echo git pull or clone $@
+       @[ -r $@/.git ] && cd $@ && git pull --ff-only || true
        @[ -e $@ ] || git clone https://github.com/tlatsas/xcolors $@
 
 data/termcol-xcolor.inc.pl: tools/mktermcol-xcolor data/xcolors/themes
@@ -94,7 +95,8 @@ data/browser: data/browser/support.inc.pl data/browser/usage-wm.inc.pl
 
 data/browser/caniuse/data.json: data/browser/caniuse
 data/browser/caniuse:
-       [ -r $@/.git ] && cd $@ && git pull --ff-only
+       @echo git pull or clone $@
+       @[ -r $@/.git ] && cd $@ && git pull --ff-only || true
        @[ -e $@ ] || git clone https://github.com/Fyrd/caniuse.git $@
 
 data/browser/support.inc.pl: tools/mkcaniuse data/browser/caniuse/data.json