398 # Remove the source prefix. |
398 # Remove the source prefix. |
399 $$(foreach i,$$($1_SRC),$$(eval $$(call remove_string,$$i,$2_TARGET))) |
399 $$(foreach i,$$($1_SRC),$$(eval $$(call remove_string,$$i,$2_TARGET))) |
400 # Now we can setup the depency that will trigger the copying. |
400 # Now we can setup the depency that will trigger the copying. |
401 $$($1_BIN)$$($2_TARGET) : $2 |
401 $$($1_BIN)$$($2_TARGET) : $2 |
402 $(MKDIR) -p $$(@D) |
402 $(MKDIR) -p $$(@D) |
403 $(CAT) $$< | $(SED) -e 's/\([^\\]\):/\1\\:/g' -e 's/\([^\\]\)=/\1\\=/g' \ |
403 export LC_ALL=C ; $(CAT) $$< \ |
|
404 | $(SED) -e 's/\([^\\]\):/\1\\:/g' -e 's/\([^\\]\)=/\1\\=/g' \ |
404 -e 's/\([^\\]\)!/\1\\!/g' -e 's/#.*/#/g' \ |
405 -e 's/\([^\\]\)!/\1\\!/g' -e 's/#.*/#/g' \ |
405 | $(SED) -f "$(SRC_ROOT)/make/common/support/unicode2x.sed" \ |
406 | $(SED) -f "$(SRC_ROOT)/make/common/support/unicode2x.sed" \ |
406 | $(SED) -e '/^#/d' -e '/^$$$$/d' \ |
407 | $(SED) -e '/^#/d' -e '/^$$$$/d' \ |
407 -e :a -e '/\\$$$$/N; s/\\\n//; ta' \ |
408 -e :a -e '/\\$$$$/N; s/\\\n//; ta' \ |
408 -e 's/^[ ]*//;s/[ ]*$$$$//' \ |
409 -e 's/^[ ]*//;s/[ ]*$$$$//' \ |
409 -e 's/\\=/=/' | LC_ALL=C $(SORT) > $$@ |
410 -e 's/\\=/=/' \ |
|
411 | $(SORT) > $$@ |
410 $(CHMOD) -f ug+w $$@ |
412 $(CHMOD) -f ug+w $$@ |
411 |
413 |
412 # And do not forget this target |
414 # And do not forget this target |
413 $1_ALL_COPY_CLEAN_TARGETS += $$($1_BIN)$$($2_TARGET) |
415 $1_ALL_COPY_CLEAN_TARGETS += $$($1_BIN)$$($2_TARGET) |
414 endef |
416 endef |