Project

General

Profile

« Previous | Next » 

Revision 1703

input.Makefile: Use with_cat instead of with_cat_csv for XML sources

View differences:

inputs/input.Makefile
171 171
+maps = $(filter maps/% $(mappings)/%,$(+_))
172 172
<in = $(firstword $(filter-out $(+maps),$(+_)))
173 173
srcs = $(shell $(bin)/sort_filenames $(wildcard $(exts:%=src/*.$*.%)))
174
isXml = $(filter %.xml,$(firstword $(srcs)))
174 175
map = $(if $(<in),<$(<in),\
175
$(if $(srcs),$(bin)/with_cat_csv $(srcs) --,\
176
$(if $(srcs),$(bin)/with_cat$(if $(isXml),,_csv) $(srcs) --,\
176 177
$(if $(mapEnv),env $(mapEnv),\
177 178
$(error No input file src/*.$*.{$(exts)}))))\
178 179
$(root)/map $(+maps)

Also available in: Unified diff