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
1db55d44
Commit
1db55d44
authored
Nov 12, 2015
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefiles: Group uninstall files in a single command.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
efbd056e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
12 deletions
+22
-12
makedep.c
tools/makedep.c
+22
-12
No files found.
tools/makedep.c
View file @
1db55d44
...
@@ -1901,14 +1901,15 @@ static const char *get_include_install_path( const char *name )
...
@@ -1901,14 +1901,15 @@ static const char *get_include_install_path( const char *name )
* Rules are stored as a (file,dest) pair of values.
* Rules are stored as a (file,dest) pair of values.
* The first char of dest indicates the type of install.
* The first char of dest indicates the type of install.
*/
*/
static
void
output_install_rules
(
const
struct
makefile
*
make
,
struct
strarray
files
,
static
struct
strarray
output_install_rules
(
const
struct
makefile
*
make
,
struct
strarray
files
,
const
char
*
target
,
struct
strarray
*
phony_targets
)
const
char
*
target
,
struct
strarray
*
phony_targets
)
{
{
unsigned
int
i
;
unsigned
int
i
;
char
*
install_sh
;
char
*
install_sh
;
struct
strarray
uninstall
=
empty_strarray
;
struct
strarray
targets
=
empty_strarray
;
struct
strarray
targets
=
empty_strarray
;
if
(
!
files
.
count
)
return
;
if
(
!
files
.
count
)
return
uninstall
;
for
(
i
=
0
;
i
<
files
.
count
;
i
+=
2
)
for
(
i
=
0
;
i
<
files
.
count
;
i
+=
2
)
if
(
strchr
(
"dps"
,
files
.
str
[
i
+
1
][
0
]
))
/* only for files copied from object dir */
if
(
strchr
(
"dps"
,
files
.
str
[
i
+
1
][
0
]
))
/* only for files copied from object dir */
...
@@ -1954,14 +1955,12 @@ static void output_install_rules( const struct makefile *make, struct strarray f
...
@@ -1954,14 +1955,12 @@ static void output_install_rules( const struct makefile *make, struct strarray f
}
}
}
}
output
(
"uninstall::
\n
"
);
for
(
i
=
0
;
i
<
files
.
count
;
i
+=
2
)
output
(
"
\t
rm -f"
);
strarray_add
(
&
uninstall
,
strmake
(
"$(DESTDIR)%s"
,
files
.
str
[
i
+
1
]
+
1
));
for
(
i
=
0
;
i
<
files
.
count
;
i
+=
2
)
output_filename
(
strmake
(
"$(DESTDIR)%s"
,
files
.
str
[
i
+
1
]
+
1
));
output
(
"
\n
"
);
strarray_add
(
phony_targets
,
"install"
);
strarray_add
_uniq
(
phony_targets
,
"install"
);
strarray_add
(
phony_targets
,
target
);
strarray_add
_uniq
(
phony_targets
,
target
);
strarray_add
(
phony_targets
,
"uninstall"
)
;
return
uninstall
;
}
}
...
@@ -1976,6 +1975,7 @@ static struct strarray output_sources( const struct makefile *make, struct strar
...
@@ -1976,6 +1975,7 @@ static struct strarray output_sources( const struct makefile *make, struct strar
struct
strarray
crossobj_files
=
empty_strarray
;
struct
strarray
crossobj_files
=
empty_strarray
;
struct
strarray
res_files
=
empty_strarray
;
struct
strarray
res_files
=
empty_strarray
;
struct
strarray
clean_files
=
empty_strarray
;
struct
strarray
clean_files
=
empty_strarray
;
struct
strarray
uninstall_files
=
empty_strarray
;
struct
strarray
po_files
=
empty_strarray
;
struct
strarray
po_files
=
empty_strarray
;
struct
strarray
mo_files
=
empty_strarray
;
struct
strarray
mo_files
=
empty_strarray
;
struct
strarray
mc_files
=
empty_strarray
;
struct
strarray
mc_files
=
empty_strarray
;
...
@@ -2703,8 +2703,18 @@ static struct strarray output_sources( const struct makefile *make, struct strar
...
@@ -2703,8 +2703,18 @@ static struct strarray output_sources( const struct makefile *make, struct strar
output
(
"
\n
"
);
output
(
"
\n
"
);
}
}
output_install_rules
(
make
,
install_rules
[
INSTALL_LIB
],
"install-lib"
,
&
phony_targets
);
strarray_addall
(
&
uninstall_files
,
output_install_rules
(
make
,
install_rules
[
INSTALL_LIB
],
output_install_rules
(
make
,
install_rules
[
INSTALL_DEV
],
"install-dev"
,
&
phony_targets
);
"install-lib"
,
&
phony_targets
));
strarray_addall
(
&
uninstall_files
,
output_install_rules
(
make
,
install_rules
[
INSTALL_DEV
],
"install-dev"
,
&
phony_targets
));
if
(
uninstall_files
.
count
)
{
output
(
"uninstall::
\n
"
);
output
(
"
\t
rm -f"
);
output_filenames
(
uninstall_files
);
output
(
"
\n
"
);
strarray_add_uniq
(
&
phony_targets
,
"uninstall"
);
}
strarray_addall
(
&
clean_files
,
object_files
);
strarray_addall
(
&
clean_files
,
object_files
);
strarray_addall
(
&
clean_files
,
crossobj_files
);
strarray_addall
(
&
clean_files
,
crossobj_files
);
...
...
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