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
5ea4e5ba
Commit
5ea4e5ba
authored
Sep 14, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefiles: Automatically rebuild makefiles when their sources and/or configure changed.
parent
8598a4c6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
0 deletions
+43
-0
Makefile.in
Makefile.in
+0
-0
make_makefiles
tools/make_makefiles
+43
-0
No files found.
Makefile.in
View file @
5ea4e5ba
This diff is collapsed.
Click to expand it.
tools/make_makefiles
View file @
5ea4e5ba
...
@@ -130,6 +130,49 @@ foreach my $test (sort keys %tests)
...
@@ -130,6 +130,49 @@ foreach my $test (sort keys %tests)
replace_in_file
(
"programs/winetest/winetest.rc"
,
' TESTRES '
,
undef
,
@lines
);
replace_in_file
(
"programs/winetest/winetest.rc"
,
' TESTRES '
,
undef
,
@lines
);
################################################################
################################################################
# update the makefile list in Makefile.in
my
@targets
;
my
@depends
;
foreach
my
$file
(
sort
@makerules
)
{
push
@targets
,
$file
;
if
(
$file
eq
"Make.rules"
)
{
push
@depends
,
"$file: $file.in"
;
}
else
{
push
@depends
,
"$file: $file.in Make.rules"
;
}
}
foreach
my
$file
(
sort
@makefiles
)
{
push
@targets
,
$file
unless
$file
eq
"Makefile"
;
# find the right rules file (FIXME: should parse the Makefile.in instead)
my
$dep
=
"Make.rules"
;
if
(
$file
=~
/^programs\/.*\/Makefile/
)
{
$dep
=
"programs/Makeprog.rules"
;
}
elsif
(
$file
=~
/^dlls\/.*\/tests\/Makefile/
)
{
$dep
=
"dlls/Maketest.rules"
;
}
elsif
(
$file
=~
/^dlls\/(.*)\/Makefile/
)
{
$dep
=
(
$1
eq
"dxerr8"
||
$1
eq
"dxerr9"
||
$1
eq
"dxguid"
||
$1
eq
"strmiids"
||
$1
eq
"uuid"
||
$1
eq
"winecrt0"
)
?
"dlls/Makeimplib.rules"
:
"dlls/Makedll.rules"
;
}
push
@depends
,
"$file: $file.in $dep"
;
}
@lines
=
();
push
@lines
,
"ALL_MAKEFILES = \\\n\t"
;
push
@lines
,
join
(
" \\\n\t"
,
@targets
),
"\n\n"
;
push
@lines
,
"Makefile \$(ALL_MAKEFILES): config.status\n"
;
push
@lines
,
"\t\@./config.status \$\@\n\n"
;
push
@lines
,
"\$(RECURSE_TARGETS) \$(MAKEDEP): \$(ALL_MAKEFILES)\n\n"
;
push
@lines
,
"distclean::\n"
;
push
@lines
,
"\t\$(RM) Makefile \$(ALL_MAKEFILES)\n\n"
;
push
@lines
,
join
(
"\n"
,
@depends
),
"\n"
;
replace_in_file
(
"Makefile.in"
,
'^ALL_MAKEFILES\s*='
,
undef
,
@lines
);
################################################################
# update dlls/Makefile.in
# update dlls/Makefile.in
my
@dll_makefiles
=
grep
/^dlls\//
,
@makefiles
;
my
@dll_makefiles
=
grep
/^dlls\//
,
@makefiles
;
...
...
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