X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=makefile;fp=makefile;h=649eb5929a555162e43f9fa8ebb0f8965a21f45c;hb=cdf201cdec6ddcca1dc801f9ae3ae85c7c9d0637;hp=b47b5f20252c06a8264aac783393c76c6bc324ff;hpb=f4d0245a7e3e026779ef7baa997b8793737f327e;p=dead%2Fcensus-tools.git diff --git a/makefile b/makefile index b47b5f2..649eb59 100644 --- a/makefile +++ b/makefile @@ -85,9 +85,16 @@ db: data newdb tiger_blocks_table tiger_lines_table sf1_blocks_table done; \ done; - bin/sf1blocks2sql src/Tests/Fixtures/SummaryFile1/mdgeo.uf1 sf1_blocks \ - | psql -U postgres -d $(DB_NAME) \ - > /dev/null +# Summary File 1 +# +# Run all of the geo (uf1) files through the import script. This has +# to happen after the blocks import since we impose a foreign key +# restriction. + for state in data/census2000/*; do \ + bin/sf1blocks2sql $$state/sf1/*.uf1 sf1_blocks \ + | psql -U postgres -d $(DB_NAME) \ + > /dev/null; \ + done;