Purge backslash chars to allow a Windows friendly Makefile writer

parent a0f92d6c
......@@ -29,6 +29,7 @@ import logging
from .make_syn import ToolSyn
from hdlmake.util import path as path_mod
from hdlmake.srcfile import (VHDLFile, VerilogFile, SVFile,
UCFFile, CDCFile, NGCFile)
......@@ -146,7 +147,10 @@ $(TCL_CLOSE)'''
syn_properties = self.manifest_dict.get("syn_properties")
project_new = []
project_tcl = self._tcl_controls["project"]
tmp = 'project set \\"{0}\\" \\"{1}\\"'
if path_mod.check_windows():
tmp = 'project set "{0}" "{1}"'
else:
tmp = 'project set \\"{0}\\" \\"{1}\\"'
properties = [
['family', '$(SYN_FAMILY)'],
['device', '$(SYN_DEVICE)'],
......
......@@ -158,9 +158,7 @@ SYN_GRADE := ${syn_grade}
tcl_command.append(echo_command.format(command))
self.writeln("""\
{0}.tcl:
\t\techo puts \\"START {2}.TCL SCRIPT\\" > $@
{3}
\t\techo puts \\"FINISH {2}.TCL SCRIPT\\" >> $@
{0}: {1} {0}.tcl
\t\t$(SYN_PRE_{2}_CMD)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment