]> gitweb.michael.orlitzky.com - dead/census-tools.git/commitdiff
Added the "lib" makefile task.
authorMichael Orlitzky <michael@orlitzky.com>
Wed, 21 Oct 2009 18:53:44 +0000 (14:53 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Wed, 21 Oct 2009 18:53:44 +0000 (14:53 -0400)
Created a README in the "lib" directory explaining the Shapely checkout procedure.

lib/.gitignore [new file with mode: 0644]
lib/README [new file with mode: 0644]
makefile

diff --git a/lib/.gitignore b/lib/.gitignore
new file mode 100644 (file)
index 0000000..7397096
--- /dev/null
@@ -0,0 +1 @@
+Shapely
diff --git a/lib/README b/lib/README
new file mode 100644 (file)
index 0000000..7149482
--- /dev/null
@@ -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.
index bfccc236762944d8830f6b51eb797b3de351b124..691e1943f3c230abebaac57f100f0df6b1fe1f2d 100644 (file)
--- 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: