Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
fcc0e762
Commit
fcc0e762
authored
Feb 19, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefiles: Add a helper to split large file remove commands.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1a49f2e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
3 deletions
+26
-3
makedep.c
tools/makedep.c
+26
-3
No files found.
tools/makedep.c
View file @
fcc0e762
...
...
@@ -498,6 +498,31 @@ static void output_filenames( struct strarray array )
/*******************************************************************
* output_rm_filenames
*/
static
void
output_rm_filenames
(
struct
strarray
array
)
{
static
const
unsigned
int
max_cmdline
=
30000
;
/* to be on the safe side */
unsigned
int
i
,
len
;
if
(
!
array
.
count
)
return
;
output
(
"
\t
rm -f"
);
for
(
i
=
len
=
0
;
i
<
array
.
count
;
i
++
)
{
if
(
len
>
max_cmdline
)
{
output
(
"
\n
"
);
output
(
"
\t
rm -f"
);
len
=
0
;
}
output_filename
(
array
.
str
[
i
]
);
len
+=
strlen
(
array
.
str
[
i
]
)
+
1
;
}
output
(
"
\n
"
);
}
/*******************************************************************
* get_extension
*/
static
char
*
get_extension
(
char
*
filename
)
...
...
@@ -3323,9 +3348,7 @@ static void output_subdirs( struct makefile *make )
output_filenames
(
makefile_deps
);
output
(
":
\n
"
);
output
(
"distclean::
\n
"
);
output
(
"
\t
rm -f"
);
output_filenames
(
distclean_files
);
output
(
"
\n
"
);
output_rm_filenames
(
distclean_files
);
strarray_add
(
&
make
->
phony_targets
,
"distclean"
);
if
(
build_deps
.
count
)
...
...
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