Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
aea0d88a
Commit
aea0d88a
authored
Nov 14, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefiles: Avoid generating the .tab.c file twice with bison.
parent
9b26ea16
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
makedep.c
tools/makedep.c
+4
-7
No files found.
tools/makedep.c
View file @
aea0d88a
...
@@ -2680,20 +2680,17 @@ static void output_po_files( struct makefile *make )
...
@@ -2680,20 +2680,17 @@ static void output_po_files( struct makefile *make )
*/
*/
static
void
output_source_y
(
struct
makefile
*
make
,
struct
incl_file
*
source
,
const
char
*
obj
)
static
void
output_source_y
(
struct
makefile
*
make
,
struct
incl_file
*
source
,
const
char
*
obj
)
{
{
/* add source file dependency for parallel makes */
char
*
header
=
strmake
(
"%s.tab.h"
,
obj
);
char
*
header
=
strmake
(
"%s.tab.h"
,
obj
);
if
(
find_include_file
(
make
,
header
))
if
(
find_include_file
(
make
,
header
))
{
{
output
(
"%s: %s
\n
"
,
obj_dir_path
(
make
,
header
),
source
->
filename
);
output
(
"%s: %s
\n
"
,
obj_dir_path
(
make
,
header
),
source
->
filename
);
output
(
"
\t
%s%s -o %s.tab.c -d %s
\n
"
,
output
(
"
\t
%s%s -o %s.tab.$$$$.c --header=$@ %s && rm -f %s.tab.$$$$.c
\n
"
,
cmd_prefix
(
"BISON"
),
bison
,
obj_dir_path
(
make
,
obj
),
source
->
filename
);
cmd_prefix
(
"BISON"
),
bison
,
obj_dir_path
(
make
,
obj
),
output
(
"%s.tab.c: %s %s
\n
"
,
obj_dir_path
(
make
,
obj
),
source
->
filename
,
obj_dir_path
(
make
,
obj
));
source
->
filename
,
obj_dir_path
(
make
,
header
));
strarray_add
(
&
make
->
clean_files
,
header
);
strarray_add
(
&
make
->
clean_files
,
header
);
}
}
else
output
(
"%s.tab.c: %s
\n
"
,
obj_dir_path
(
make
,
obj
),
source
->
filename
);
output
(
"%s.tab.c: %s
\n
"
,
obj_dir_path
(
make
,
obj
),
source
->
filename
);
output
(
"
\t
%s%s -o $@ %s
\n
"
,
cmd_prefix
(
"BISON"
),
bison
,
source
->
filename
);
output
(
"
\t
%s%s -o $@ %s
\n
"
,
cmd_prefix
(
"BISON"
),
bison
,
source
->
filename
);
}
}
...
...
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