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
ba416a57
Commit
ba416a57
authored
Jan 11, 2016
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefiles: Generate distclean rules from makedep.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
da9381ce
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
26 deletions
+22
-26
aclocal.m4
aclocal.m4
+2
-13
configure
configure
+2
-13
makedep.c
tools/makedep.c
+18
-0
No files found.
aclocal.m4
View file @
ba416a57
...
@@ -302,11 +302,6 @@ install-dev:: $ac_dir/install-dev"
...
@@ -302,11 +302,6 @@ install-dev:: $ac_dir/install-dev"
wine_fn_clean_rules ()
wine_fn_clean_rules ()
{
{
ac_clean=$[@]
ac_clean=$[@]
ac_extraclean="$ac_dir/Makefile"
test "$srcdir" = . && ac_extraclean="$ac_extraclean $ac_dir/.gitignore"
case $ac_dir in
*/tests) ac_extraclean="$ac_extraclean $ac_dir/testlist.c" ;;
esac
if wine_fn_has_flag clean
if wine_fn_has_flag clean
then
then
...
@@ -320,24 +315,18 @@ wine_fn_clean_rules ()
...
@@ -320,24 +315,18 @@ wine_fn_clean_rules ()
fi
fi
wine_fn_append_rule \
wine_fn_append_rule \
"__clean__: $ac_dir/clean
"__clean__: $ac_dir/clean
.PHONY: $ac_dir/clean
.PHONY: $ac_dir/clean"
distclean::
\$(RM) $ac_extraclean"
}
}
wine_fn_disabled_rules ()
wine_fn_disabled_rules ()
{
{
ac_clean=$[@]
ac_clean=$[@]
ac_extraclean="$ac_dir/Makefile"
test "$srcdir" = . && ac_extraclean="$ac_extraclean $ac_dir/.gitignore"
wine_fn_append_rule \
wine_fn_append_rule \
"__clean__: $ac_dir/clean
"__clean__: $ac_dir/clean
.PHONY: $ac_dir/clean
.PHONY: $ac_dir/clean
$ac_dir/clean: dummy
$ac_dir/clean: dummy
\$(RM) \$(CLEAN_FILES:%=$ac_dir/%) $ac_clean
\$(RM) \$(CLEAN_FILES:%=$ac_dir/%) $ac_clean"
distclean::
\$(RM) $ac_extraclean"
}
}
wine_fn_config_makefile ()
wine_fn_config_makefile ()
...
...
configure
View file @
ba416a57
...
@@ -7497,11 +7497,6 @@ install-dev:: $ac_dir/install-dev"
...
@@ -7497,11 +7497,6 @@ install-dev:: $ac_dir/install-dev"
wine_fn_clean_rules
()
wine_fn_clean_rules
()
{
{
ac_clean
=
$@
ac_clean
=
$@
ac_extraclean
=
"
$ac_dir
/Makefile"
test
"
$srcdir
"
=
.
&&
ac_extraclean
=
"
$ac_extraclean
$ac_dir
/.gitignore"
case
$ac_dir
in
*
/tests
)
ac_extraclean
=
"
$ac_extraclean
$ac_dir
/testlist.c"
;;
esac
if
wine_fn_has_flag clean
if
wine_fn_has_flag clean
then
then
...
@@ -7515,24 +7510,18 @@ wine_fn_clean_rules ()
...
@@ -7515,24 +7510,18 @@ wine_fn_clean_rules ()
fi
fi
wine_fn_append_rule
\
wine_fn_append_rule
\
"__clean__:
$ac_dir
/clean
"__clean__:
$ac_dir
/clean
.PHONY:
$ac_dir
/clean
.PHONY:
$ac_dir
/clean"
distclean::
\$
(RM)
$ac_extraclean
"
}
}
wine_fn_disabled_rules
()
wine_fn_disabled_rules
()
{
{
ac_clean
=
$@
ac_clean
=
$@
ac_extraclean
=
"
$ac_dir
/Makefile"
test
"
$srcdir
"
=
.
&&
ac_extraclean
=
"
$ac_extraclean
$ac_dir
/.gitignore"
wine_fn_append_rule
\
wine_fn_append_rule
\
"__clean__:
$ac_dir
/clean
"__clean__:
$ac_dir
/clean
.PHONY:
$ac_dir
/clean
.PHONY:
$ac_dir
/clean
$ac_dir
/clean: dummy
$ac_dir
/clean: dummy
\$
(RM)
\$
(CLEAN_FILES:%=
$ac_dir
/%)
$ac_clean
\$
(RM)
\$
(CLEAN_FILES:%=
$ac_dir
/%)
$ac_clean
"
distclean::
\$
(RM)
$ac_extraclean
"
}
}
wine_fn_config_makefile
()
wine_fn_config_makefile
()
...
...
tools/makedep.c
View file @
ba416a57
...
@@ -2843,6 +2843,24 @@ static struct strarray output_sources( const struct makefile *make )
...
@@ -2843,6 +2843,24 @@ static struct strarray output_sources( const struct makefile *make )
strarray_add
(
&
phony_targets
,
obj_dir_path
(
make
,
"clean"
));
strarray_add
(
&
phony_targets
,
obj_dir_path
(
make
,
"clean"
));
}
}
if
(
make
->
subdirs
.
count
)
{
struct
strarray
distclean_files
=
empty_strarray
;
for
(
i
=
0
;
i
<
make
->
subdirs
.
count
;
i
++
)
{
strarray_add
(
&
distclean_files
,
base_dir_path
(
make
->
submakes
[
i
],
output_makefile_name
));
if
(
!
make
->
src_dir
)
strarray_add
(
&
distclean_files
,
base_dir_path
(
make
->
submakes
[
i
],
".gitignore"
));
if
(
make
->
submakes
[
i
]
->
testdll
)
strarray_add
(
&
distclean_files
,
base_dir_path
(
make
->
submakes
[
i
],
"testlist.c"
));
}
output
(
"distclean::
\n
"
);
output
(
"
\t
rm -f"
);
output_filenames
(
distclean_files
);
output
(
"
\n
"
);
strarray_add
(
&
phony_targets
,
"distclean"
);
}
if
(
phony_targets
.
count
)
if
(
phony_targets
.
count
)
{
{
output
(
".PHONY:"
);
output
(
".PHONY:"
);
...
...
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