Project

General

Profile

« Previous | Next » 

Revision 1741

Makefile: Also find missing input mappings, in addition to missing join mappings

View differences:

Makefile
58 58
	$(MAKE) $(@D)/
59 59
# re-run make so that cache of existing files is reset
60 60

  
61
##### Subdir forwarding
62

  
61 63
define subdirTargets
62 64
$(subdir): _always
63 65
	+$$(subMake)
......
247 249

  
248 250
#### Maps validation
249 251

  
250
filter_join_warnings =\
251
$(SED) -n 's/^.*No join mapping for ([0-9A-Za-z_-]+).*$$/\1/p'\
252
|bin/ucase_first 0|sort|uniq
252
missing_mappings: _always missing_join_mappings missing_input_mappings ;
253 253

  
254
missing_joins:
255
	$(MAKE) inputs/remake 2>&1|$(filter_join_warnings)
254
missing_%_mappings: _always # stem is one of join|input
255
	@echo $(emph)"Missing $* mappings:"$(endEmph) >&2
256
	@+$(MAKE) inputs/remake 2>&1\
257
|$(SED) -n 's/^.*No $* mapping for ([0-9A-Za-z_-]+).*$$/\1/p'\
258
$(if $(filter join,$*),|bin/ucase_first 0)|sort|uniq
256 259

  
257 260
##### Testing
258 261

  

Also available in: Unified diff