diff options
author | tv <tv@nomic.retiolum> | 2013-02-02 00:50:20 +0100 |
---|---|---|
committer | tv <tv@nomic.retiolum> | 2013-02-02 00:50:20 +0100 |
commit | 374ad7c3f0389372ee5bf79988a35883cd80a7a4 (patch) | |
tree | c628d4a1cd60326016792e5c1885ce2bfa99b460 /util/lib/geo/Makefile | |
parent | f2261f86c9d90cd2648ac6973358b6c8f5798673 (diff) |
//util geo: initial commit
Diffstat (limited to 'util/lib/geo/Makefile')
-rw-r--r-- | util/lib/geo/Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/util/lib/geo/Makefile b/util/lib/geo/Makefile new file mode 100644 index 00000000..d13cd471 --- /dev/null +++ b/util/lib/geo/Makefile @@ -0,0 +1,15 @@ +all: node_modules GeoLiteCity.dat + +node_modules: package.json + npm install + @touch -r $< $@ + +GeoLiteCity.dat: + @test -e GeoLiteCity.dat && ln -s GeoLiteCity.dat $@ || { \ + echo 'No GeoIP City database found.'; \ + echo 'You can get one from http://dev.maxmind.com/geoip/geolite:'; \ + echo ' wget -N http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz'; \ + echo ' gunzip GeoLiteCity.dat.gz'; \ + exit 23; \ + } + |