From 8beb63912f19f12e8a498305a8b76dac77ae3b4c Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Thu, 27 Apr 2017 03:44:14 +0200 Subject: [PATCH] browser: caniuse data from github repository Identical to downloaded json file but includes history and stuff. --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 1fb2ac5..804bba7 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ all: digraphs.inc.pl unicode-cover.inc.pl countries.inc.pl data/browser/support.inc.pl termcol-xcolor.inc.pl more: all data/digraphs-xorg.inc.pl -download: data/DerivedAge.txt data/rfc1345.txt data/xorg-compose data/countryInfo.txt data/caniuse.json +download: data/DerivedAge.txt data/rfc1345.txt data/xorg-compose data/countryInfo.txt data/browser/caniuse .PHONY: download data/DerivedAge.txt: @@ -82,10 +82,12 @@ data/countryInfo.txt: countries.inc.pl: tools/mkcountries-geonames data/countryInfo.txt $< $(word 2,$^) >$@ -data/caniuse.json: - tools/wget-ifmodified http://caniuse.com/data.json $@ +data/browser/caniuse/data.json: data/browser/caniuse +data/browser/caniuse: + [ -r $@/.git ] && cd $@ && git pull --ff-only + @[ -e $@ ] || git clone https://github.com/Fyrd/caniuse.git $@ -data/browser/support.inc.pl: tools/mkcaniuse data/caniuse.json +data/browser/support.inc.pl: tools/mkcaniuse data/browser/caniuse/data.json $< $(word 2,$^) >$@ clean: -- 2.30.0