Project

General

Profile

« Previous | Next » 

Revision 1519

main Makefile: Added missing_joins to determine which input fields are missing join mappings

View differences:

Makefile
11 11
os := $(shell uname)
12 12
forOs = $(patsubst %,%-$(filter Linux Darwin,$(os)),$(1))
13 13

  
14
SED = sed -$(if $(filter Darwin,$(os)),E,r)
15

  
14 16
# Terminal
15 17
esc := '['
16 18
reset := $(esc)'0m'
......
138 140

  
139 141
psqlOpts := --set ON_ERROR_STOP=1 --quiet
140 142
psqlAsAdmin := sudo -u postgres psql $(psqlOpts)
141
psqlAsBien := ./bin/psql_vegbien $(psqlOpts)
143
psqlAsBien := bin/psql_vegbien $(psqlOpts)
142 144
bienPassword := $(shell cat config/bien_password)
143 145

  
144 146
postgres_user: _always
......
220 222
test: _always inputs/test
221 223
	@$(done)
222 224

  
225
#### Maps validation
226

  
227
filter_join_warnings =\
228
$(SED) -n 's/^.*No join mapping for ([0-9A-Za-z_-]+).*$$/\1/p'\
229
|bin/ucase_first 0|sort|uniq
230

  
231
missing_joins:
232
	$(MAKE) inputs/remake 2>&1|$(filter_join_warnings)
233

  
223 234
##### Testing
224 235

  
225 236
test-all: _always remake test

Also available in: Unified diff