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
17f86de3
Commit
17f86de3
authored
Oct 07, 2019
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefilesim.py: minor rewrite.
parent
b94cc58d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
makefilesim.py
hdlmake/tools/makefilesim.py
+7
-6
No files found.
hdlmake/tools/makefilesim.py
View file @
17f86de3
...
...
@@ -103,13 +103,14 @@ TOP_MODULE := {top_module}
"""Print dummy targets to handle file dependencies"""
fileset
=
self
.
fileset
.
sort
()
for
file_aux
in
fileset
:
if
any
(
isinstance
(
file_aux
,
file_type
)
for
file_type
in
self
.
_hdl_files
):
self
.
write
(
"
%
s:
%
s"
%
(
self
.
get_stamp_file
(
file_aux
),
file_aux
.
rel_path
()))
# Consider only HDL files.
if
isinstance
(
file_aux
,
tuple
(
self
.
_hdl_files
)
):
self
.
write
(
"
{}: {}"
.
format
(
self
.
get_stamp_file
(
file_aux
),
file_aux
.
rel_path
()))
# list dependencies, do not include the target file
for
dep_file
in
sorted
([
dfile
for
dfile
in
file_aux
.
depends_on
if
dfile
is
not
file_aux
],
key
=
(
lambda
x
:
x
.
file_path
)):
for
dep_file
in
sorted
(
file_aux
.
depends_on
,
key
=
(
lambda
x
:
x
.
file_path
)):
if
dep_file
is
file_aux
:
# Do not depend on itself.
continue
if
dep_file
in
fileset
:
self
.
write
(
"
\\\n
"
+
self
.
get_stamp_file
(
dep_file
))
else
:
...
...
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