Commit ae9ab6a9 authored by Tristan Gingold's avatar Tristan Gingold

minor refactoring.

parent ced4d71d
......@@ -98,15 +98,6 @@ class ToolMakefile(object):
else:
return self.TOOL_INFO["linux_bin"]
def get_stamp_file(self, dep_file):
"""Stamp file for source file :param file:"""
name = dep_file.purename
return os.path.join(dep_file.library, name, ".{}_{}".format(name, dep_file.extension()))
def _makefile_touch_stamp_file(self):
self.write("\t\t@" + shell.mkdir_command() + " $(dir $@)")
self.writeln(" && " + shell.touch_command() + " $@\n")
def makefile_check_tool(self, path_key):
"""Check if the binary is available in the O.S. environment"""
name = self.TOOL_INFO['name']
......
......@@ -55,6 +55,15 @@ class MakefileSim(ToolMakefile):
section"""
pass
def get_stamp_file(self, dep_file):
"""Stamp file for source file :param file:"""
name = dep_file.purename
return os.path.join(dep_file.library, name, ".{}_{}".format(name, dep_file.extension()))
def _makefile_touch_stamp_file(self):
self.write("\t\t@" + shell.mkdir_command() + " $(dir $@)")
self.writeln(" && " + shell.touch_command() + " $@\n")
def _makefile_sim_local(self):
"""Generic method to write the simulation Makefile local target"""
self.writeln("#target for performing local simulation\n"
......
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