Revision 6074
Added by Aaron Marcuse-Kubitza about 12 years ago
input.Makefile | ||
---|---|---|
285 | 285 |
srcRoot = $(mappings)/root.sh |
286 | 286 |
mkSrcMap = $(catSrcs)|(. $(srcRoot); env datasrc=$(datasrc) $(bin)/src_map >$@) |
287 | 287 |
|
288 |
define translate |
|
289 |
$(bin)/in_place $< $(bin)/canon 1 $(1) |
|
290 |
$(bin)/in_place $< $(bin)/translate 1 $(1) |
|
291 |
endef |
|
292 |
translate? = $(if $(wildcard $(1)),$(translate)) |
|
293 |
|
|
288 | 294 |
# Via maps cleanup |
289 | 295 |
ifneq ($(filter %/.map.csv.last_cleanup,$(MAKECMDGOALS)),) |
290 | 296 |
%/.map.csv.last_cleanup: %/map.csv $(vocab) $(dict) $(coreMap) |
291 |
$(bin)/in_place $< $(bin)/canon 1 $(srcDict) |
|
292 |
$(bin)/in_place $< $(bin)/translate 1 $(srcDict) |
|
297 |
$(call translate?,$(srcDict)) |
|
293 | 298 |
$(bin)/in_place $< $(bin)/canon 1 $(vocab) |
294 | 299 |
$(bin)/in_place $< $(bin)/canon 1 $(dict) |
295 | 300 |
$(bin)/in_place $< $(bin)/translate 1 $(dict) |
Also available in: Unified diff
input.Makefile: Maps building: %/.map.csv.last_cleanup: Fixed bug where can only canon/translate using $(srcDict) if it exists for the datasource