Project

General

Profile

« Previous | Next » 

Revision 10312

inputs/input.Makefile: added %/postprocess.sql to replace input column names with the corresponding output column names when switching to new-style import (this target must be manually run, but does simplify the process of renaming the postprocess.sql input columns)

View differences:

inputs/input.Makefile
286 286
"time" env no_search_path=1 ../$(bin)/psql_verbose_vegbien \
287 287
--set=table='"$(*D)"' --set=table_str=\''"$(*D)"'\'))
288 288

  
289
%/postprocess.sql: %/map.csv
290
	$(if $(wildcard $*/run),$(bin)/in_place $@ $(bin)/repl $<)
291

  
289 292
%/postprocess: _always
290 293
	$(if $(wildcard $*/run),,$(selfMake) $*/postprocess.sql/run)
291 294

  

Also available in: Unified diff