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
e4b87f75
Commit
e4b87f75
authored
Oct 31, 2019
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefilevsim.py: simplify
parent
cabc3421
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
makefilevsim.py
hdlmake/tools/makefilevsim.py
+5
-9
No files found.
hdlmake/tools/makefilevsim.py
View file @
e4b87f75
...
...
@@ -153,15 +153,11 @@ class MakefileVsim(MakefileSim):
# each .dat depends on corresponding .vhd file
self
.
write
(
"
%
s:
%
s"
%
(
self
.
_get_stamp_file
(
vhdl
),
vhdl
.
rel_path
()))
# list dependencies, do not include the target file
for
dep_file
in
sorted
([
dfile
for
dfile
in
vhdl
.
depends_on
if
dfile
is
not
vhdl
],
key
=
(
lambda
x
:
x
.
path
)):
if
dep_file
in
fileset
:
self
.
write
(
"
\\\n
"
+
self
.
_get_stamp_file
(
dep_file
))
else
:
self
.
write
(
"
\\\n
"
+
dep_file
.
rel_path
())
for
dep_file
in
sorted
(
vhdl
.
depends_on
,
key
=
(
lambda
x
:
x
.
path
)):
if
dep_file
is
vhdl
:
continue
self
.
write
(
"
\\\n
"
+
self
.
_get_stamp_file
(
dep_file
))
self
.
writeln
()
self
.
writeln
(
' '
.
join
([
"
\t\t
vcom $(VCOM_FLAGS)"
,
"-work"
,
vhdl
.
library
,
"$< "
]))
self
.
writeln
(
"
\t\t
vcom $(VCOM_FLAGS) -work {} $< "
.
format
(
vhdl
.
library
))
self
.
writeln
(
"
\t\t
@"
+
shell
.
mkdir_command
()
+
" $(dir $@) && "
+
shell
.
touch_command
()
+
" $@
\n\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