From: Michael Orlitzky Date: Wed, 21 Oct 2009 18:53:44 +0000 (-0400) Subject: Added the "lib" makefile task. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=ac32d9ecd4b797379528b5cb901003ba34d8f1c1;p=dead%2Fcensus-tools.git Added the "lib" makefile task. Created a README in the "lib" directory explaining the Shapely checkout procedure. --- diff --git a/lib/.gitignore b/lib/.gitignore new file mode 100644 index 0000000..7397096 --- /dev/null +++ b/lib/.gitignore @@ -0,0 +1 @@ +Shapely diff --git a/lib/README b/lib/README new file mode 100644 index 0000000..7149482 --- /dev/null +++ b/lib/README @@ -0,0 +1,8 @@ +Third-party libraries are stored here. Currently, Shapely is the only +one we're using which isn't available through package managers. + +Shapely should be pulled from Subversion: + + svn co http://svn.gispython.org/svn/gispy/Shapely/trunk Shapely + +This will probably be handled by the makefile. diff --git a/makefile b/makefile index bfccc23..691e194 100644 --- a/makefile +++ b/makefile @@ -1,6 +1,7 @@ DB_NAME=census DB_USER=postgres TIGER_SRID=4269 +SHAPELY_URL=http://svn.gispython.org/svn/gispy/Shapely/trunk # Root folder for the shapefiles. TIGER_ROOT=http://www2.census.gov/geo/tiger/TIGER2009 @@ -28,18 +29,28 @@ PG_SHAREDIR=`pg_config --sharedir` # Necessary to run test/data without prerequisites. # -.PHONY : test data +.PHONY : test data lib # The default task, since it comes first in the list. # -all: clean test +all: clean lib test test: ./bin/run_tests +# Download or check out any third-party libraries. +lib: + if [ -d lib/Shapely ]; then \ + cd lib/Shapely; \ + svn update; \ + else \ + svn co $(SHAPELY_URL) lib/Shapely; \ + fi; + + # Remove byte-compiled python code. # clean: