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
0cd41d55
Commit
0cd41d55
authored
May 22, 2017
by
Javier D. Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a Makefile variable to store the extra stuff to be cleaned
parent
6cfcc21a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
makefile.py
hdlmake/tools/makefile.py
+5
-7
No files found.
hdlmake/tools/makefile.py
View file @
0cd41d55
...
...
@@ -128,22 +128,20 @@ class ToolMakefile(object):
def
makefile_clean
(
self
):
"""Print the Makefile target for cleaning intermediate files"""
self
.
writeln
(
"#target for cleaning intermediate files"
)
self
.
writeln
(
"CLEAN_TARGETS := $(LIBS) "
+
' '
.
join
(
self
.
_clean_targets
[
"clean"
])
+
"
\n
"
)
self
.
writeln
(
"clean:"
)
tmp
=
"
\t\t
"
+
path_mod
.
del_command
()
+
\
" $(LIBS) "
+
' '
.
join
(
self
.
_clean_targets
[
"clean"
])
tmp
=
"
\t\t
"
+
path_mod
.
del_command
()
+
" $(CLEAN_TARGETS)"
self
.
writeln
(
tmp
)
if
path_mod
.
check_windows
():
tmp
=
"
\t\t
"
+
path_mod
.
rmdir_command
()
+
\
" $(LIBS) "
+
' '
.
join
(
self
.
_clean_targets
[
"clean"
])
tmp
=
"
\t\t
"
+
path_mod
.
rmdir_command
()
+
" $(CLEAN_TARGETS)"
self
.
writeln
(
tmp
)
def
makefile_mrproper
(
self
):
"""Print the Makefile target for cleaning final files"""
self
.
writeln
(
"#target for cleaning final files"
)
self
.
writeln
(
"mrproper: clean"
)
tmp
=
"
\t\t
"
+
path_mod
.
del_command
()
+
\
" "
+
' '
.
join
(
self
.
_clean_targets
[
"mrproper"
])
" "
+
' '
.
join
(
self
.
_clean_targets
[
"mrproper"
])
+
"
\n
"
self
.
writeln
(
tmp
)
def
initialize
(
self
):
...
...
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