Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
Hdlmake
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
15
Issues
15
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Hdlmake
Commits
ae9ab6a9
Commit
ae9ab6a9
authored
Feb 26, 2020
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor refactoring.
parent
ced4d71d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
makefile.py
hdlmake/tools/makefile.py
+0
-9
makefilesim.py
hdlmake/tools/makefilesim.py
+9
-0
No files found.
hdlmake/tools/makefile.py
View file @
ae9ab6a9
...
...
@@ -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'
]
...
...
hdlmake/tools/makefilesim.py
View file @
ae9ab6a9
...
...
@@ -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
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment