target_commands.jinja 641 B

12345678910111213141516171819
  1. {%- if current_target.target_commands is defined -%}
  2. {%- for target_command in current_target.target_commands %}
  3. {{ target_command.macro }}(
  4. {%- if target_command.args|length -%}
  5. {%- for arg in target_command.args %}
  6. {{ arg }}
  7. {%- endfor -%}
  8. {%- endif %}
  9. {%- if target_command.args_escaped|length %}
  10. "
  11. {%- for arg_escaped in target_command.args_escaped -%}
  12. {{ arg_escaped|replace('\\', '\\\\')|replace('"', '\\"')|replace(';', '\\;') }}
  13. {%- if not loop.last -%};{%- endif -%}
  14. {%- endfor -%}
  15. "
  16. {%- endif %}
  17. )
  18. {% endfor -%}
  19. {%- endif -%}