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
315f53cd
Commit
315f53cd
authored
May 18, 2017
by
Javier D. Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a touch command replacement for Windows makefile
parent
f9ff90b3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
make_syn.py
hdlmake/tools/make_syn.py
+2
-2
path.py
hdlmake/util/path.py
+8
-0
No files found.
hdlmake/tools/make_syn.py
View file @
315f53cd
...
...
@@ -164,9 +164,9 @@ SYN_GRADE := ${syn_grade}
\t\t
$(SYN_PRE_{2}_CMD)
\t\t
$(TCL_INTERPRETER) $@.tcl
\t\t
$(SYN_POST_{2}_CMD)
\t\t
touch
$@
\t\t
{4}
$@
"""
.
format
(
stage
,
stage_previous
,
stage
.
upper
(),
"
\n
"
.
join
(
tcl_command
)))
"
\n
"
.
join
(
tcl_command
)
,
path_mod
.
touch_command
()
))
stage_previous
=
stage
def
makefile_syn_command
(
self
):
...
...
hdlmake/util/path.py
View file @
315f53cd
...
...
@@ -199,6 +199,14 @@ def mkdir_command():
return
"mkdir -p"
def
touch_command
():
"""Get a string with the O.S. specific mkdir command"""
if
check_windows
():
return
"type nul >>"
else
:
return
"touch"
def
which
(
filename
):
"""Implement the which function and return the paths as a string list"""
locations
=
os
.
environ
.
get
(
"PATH"
)
.
split
(
os
.
pathsep
)
...
...
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