Revision 7437
Added by Aaron Marcuse-Kubitza almost 12 years ago
input.Makefile | ||
---|---|---|
292 | 292 |
srcRoot = $(mappings)/root.sh |
293 | 293 |
mkSrcMap = $(catSrcs)|(. $(srcRoot); env datasrc=$(datasrc) $(bin)/src_map >$@) |
294 | 294 |
|
295 |
define translate |
|
296 |
$(bin)/in_place $< $(bin)/translate_ci 1 $(1) |
|
297 |
endef |
|
298 |
translate? = $(if $(wildcard $(1)),$(translate)) |
|
295 |
translate = $(if $(wildcard $(1)),$(bin)/in_place $< $(bin)/translate_ci 1 $(1)) |
|
299 | 296 |
|
300 | 297 |
$(srcDict):# empty target in case it doesn't exist |
301 | 298 |
|
302 | 299 |
# Via maps cleanup |
303 | 300 |
ifneq ($(filter %/.map.csv.last_cleanup,$(MAKECMDGOALS)),) |
304 | 301 |
%/.map.csv.last_cleanup: %/map.csv $(vocab) $(dict) $(coreMap) $(srcDict) |
305 |
$(call translate?,$(srcDict))
|
|
302 |
$(call translate,$(srcDict)) |
|
306 | 303 |
$(bin)/in_place $< $(bin)/canon 1 $(vocab) |
307 |
$(call translate?,$(dict))
|
|
304 |
$(call translate,$(dict)) |
|
308 | 305 |
touch $@ |
309 | 306 |
+$(selfMake) $(<:%/map.csv=%/unmapped_terms.csv) |
310 | 307 |
+$(selfMake) $(<:%/map.csv=%/new_terms.csv) |
Also available in: Unified diff
input.Makefile: $(translate?): Merged with $(translate), which is not used independently