Revision 1931
Added by Aaron Marcuse-Kubitza over 12 years ago
inputs/input.Makefile | ||
---|---|---|
149 | 149 |
echo 'DROP SCHEMA IF EXISTS "$(datasrc)" CASCADE;'|$(psqlAsBien) |
150 | 150 |
|
151 | 151 |
import/install-%: _always |
152 |
env schema=$(datasrc) table=$* $(withCatSrcs) $(bin)/csv2ddl$(if\
|
|
152 |
$(catSrcs)|env schema=$(datasrc) table=$* $(bin)/csv2ddl$(if\
|
|
153 | 153 |
$(debug),|tee /dev/fd/2)|$(psqlAsBien) |
154 | 154 |
|
155 | 155 |
##### Sources |
... | ... | |
173 | 173 |
|
174 | 174 |
srcMaps := $(wildcard maps/src.*.csv) |
175 | 175 |
|
176 |
mkSrcMap = env datasrc=$(datasrc) $(withCatSrcs) $(bin)/src_map >$@
|
|
176 |
mkSrcMap = $(catSrcs)|env datasrc=$(datasrc) $(bin)/src_map >$@
|
|
177 | 177 |
|
178 | 178 |
# Autogen src maps with known table names |
179 | 179 |
maps/src.%.csv: # no prereqs so only built if doesn't exist |
Also available in: Unified diff
input.Makefile: input.Makefile: Use `$(catSrcs)|` instead of $(withCatSrcs) where possible