Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yosys-tests
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
yosys-tests
Commits
e46bb7ff
Commit
e46bb7ff
authored
Sep 06, 2018
by
Clifford Wolf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add foreach blocks to simple/Makefile
Signed-off-by: Clifford Wolf <clifford@clifford.at>
parent
0ef8f454
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
simple/Makefile
+8
-6
No files found.
simple/Makefile
View file @
e46bb7ff
...
@@ -5,16 +5,18 @@ clean::
...
@@ -5,16 +5,18 @@ clean::
rm
-f
.stamp
rm
-f
.stamp
define
template
define
template
work
::
$(1)/work_$(2)/.stamp
$(foreach
design,$(1),
$(foreach
script,$(2),
work
::
$(design)/work_$(script)/.stamp
$(
1)/work_$(2
)/.stamp
:
$(
design)/work_$(script
)/.stamp
:
bash run.sh
$
(
1
)
$
(
2
)
bash run.sh
$(
design)
$(script
)
clean
::
clean
::
rm
-rf
$
(
1
)
/work_
$
(
2
)
rm
-rf
$(design)
/work_
$(script)
))
endef
endef
$(eval
$(call
template,alu,gates))
$(eval
$(call
template,alu,gates
luts))
$(eval
$(call
template,alu,luts))
.PHONY
:
all clean
.PHONY
:
all clean
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