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
363d078f
Commit
363d078f
authored
Jan 21, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefiles: Add a maintainer-clean target.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3c0a2fa5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
7 deletions
+20
-7
configure
configure
+3
-1
configure.ac
configure.ac
+3
-1
makedep.c
tools/makedep.c
+14
-5
No files found.
configure
View file @
363d078f
...
...
@@ -22832,7 +22832,9 @@ fi
wine_fn_append_rule
"distclean:: clean
rm -rf autom4te.cache"
rm -rf autom4te.cache
maintainer-clean::
rm -f configure include/config.h.in"
wine_fn_append_rule
"dlls/ntdll/unix/version.c: dummy
...
...
configure.ac
View file @
363d078f
...
...
@@ -3796,7 +3796,9 @@ dnl Rules for cleaning
WINE_APPEND_RULE(
[distclean:: clean
rm -rf autom4te.cache])
rm -rf autom4te.cache
maintainer-clean::
rm -f configure include/config.h.in])
dnl Rules for generated source files
...
...
tools/makedep.c
View file @
363d078f
...
...
@@ -208,6 +208,7 @@ struct makefile
struct
strarray
test_files
;
struct
strarray
clean_files
;
struct
strarray
distclean_files
;
struct
strarray
maintainerclean_files
;
struct
strarray
uninstall_files
;
struct
strarray
object_files
;
struct
strarray
crossobj_files
;
...
...
@@ -2583,7 +2584,7 @@ static void output_uninstall_rules( struct makefile *make )
/*******************************************************************
* output_po_files
*/
static
void
output_po_files
(
const
struct
makefile
*
make
)
static
void
output_po_files
(
struct
makefile
*
make
)
{
const
char
*
po_dir
=
src_dir_path
(
make
,
"po"
);
unsigned
int
i
;
...
...
@@ -2595,7 +2596,7 @@ static void output_po_files( const struct makefile *make )
output
(
": %s/wine.pot
\n
"
,
po_dir
);
output
(
"
\t
%smsgmerge --previous -q $@ %s/wine.pot | msgattrib --no-obsolete -o $@.new && mv $@.new $@
\n
"
,
cmd_prefix
(
"MSG"
),
po_dir
);
output
(
"po:"
);
output
(
"po
/all
:"
);
for
(
i
=
0
;
i
<
linguas
.
count
;
i
++
)
output_filename
(
strmake
(
"%s/%s.po"
,
po_dir
,
linguas
.
str
[
i
]
));
output
(
"
\n
"
);
...
...
@@ -2606,6 +2607,7 @@ static void output_po_files( const struct makefile *make )
output
(
"
\t
%smsgcat -o $@"
,
cmd_prefix
(
"MSG"
));
output_filenames
(
make
->
pot_files
);
output
(
"
\n
"
);
strarray_add
(
&
make
->
maintainerclean_files
,
strmake
(
"%s/wine.pot"
,
po_dir
));
}
...
...
@@ -2817,6 +2819,7 @@ static void output_source_sfd( struct makefile *make, struct incl_file *source,
output
(
"
\t
%s%s -script %s %s $@
\n
"
,
cmd_prefix
(
"GEN"
),
fontforge
,
root_src_dir_path
(
"fonts/genttf.ff"
),
source
->
filename
);
if
(
!
(
source
->
file
->
flags
&
FLAG_SFD_FONTS
))
strarray_add
(
&
make
->
font_files
,
ttf_obj
);
strarray_add
(
&
make
->
maintainerclean_files
,
ttf_obj
);
}
if
(
source
->
file
->
flags
&
FLAG_INSTALL
)
{
...
...
@@ -2852,7 +2855,7 @@ static void output_source_svg( struct makefile *make, struct incl_file *source,
static
const
char
*
const
images
[]
=
{
"bmp"
,
"cur"
,
"ico"
,
NULL
};
unsigned
int
i
;
if
(
convert
&&
rsvg
&&
icotool
&&
!
make
->
src_dir
)
if
(
convert
&&
rsvg
&&
icotool
)
{
for
(
i
=
0
;
images
[
i
];
i
++
)
if
(
find_include_file
(
make
,
strmake
(
"%s.%s"
,
obj
,
images
[
i
]
)))
break
;
...
...
@@ -2863,6 +2866,7 @@ static void output_source_svg( struct makefile *make, struct incl_file *source,
output
(
"
\t
%sCONVERT=
\"
%s
\"
ICOTOOL=
\"
%s
\"
RSVG=
\"
%s
\"
%s %s $@
\n
"
,
cmd_prefix
(
"GEN"
),
convert
,
icotool
,
rsvg
,
root_src_dir_path
(
"tools/buildimage"
),
source
->
filename
);
strarray_add
(
&
make
->
maintainerclean_files
,
strmake
(
"%s.%s"
,
obj
,
images
[
i
]
));
}
}
}
...
...
@@ -3566,12 +3570,14 @@ static void output_subdirs( struct makefile *make )
strarray_addall_uniq
(
&
dependencies
,
submakes
[
i
]
->
dependencies
);
strarray_addall_path
(
&
clean_files
,
submakes
[
i
]
->
obj_dir
,
submakes
[
i
]
->
clean_files
);
strarray_addall_path
(
&
distclean_files
,
submakes
[
i
]
->
obj_dir
,
submakes
[
i
]
->
distclean_files
);
strarray_addall_path
(
&
make
->
maintainerclean_files
,
submakes
[
i
]
->
obj_dir
,
submakes
[
i
]
->
maintainerclean_files
);
strarray_addall_path
(
&
testclean_files
,
submakes
[
i
]
->
obj_dir
,
submakes
[
i
]
->
ok_files
);
strarray_addall_path
(
&
make
->
pot_files
,
submakes
[
i
]
->
obj_dir
,
submakes
[
i
]
->
pot_files
);
if
(
submakes
[
i
]
->
disabled
)
continue
;
strarray_addall_path
(
&
all_targets
,
submakes
[
i
]
->
obj_dir
,
submakes
[
i
]
->
all_targets
);
strarray_addall_path
(
&
all_targets
,
submakes
[
i
]
->
obj_dir
,
submakes
[
i
]
->
font_files
);
if
(
!
strcmp
(
submakes
[
i
]
->
obj_dir
,
"tools"
)
||
!
strncmp
(
submakes
[
i
]
->
obj_dir
,
"tools/"
,
6
))
strarray_add
(
&
tooldeps_deps
,
obj_dir_path
(
submakes
[
i
],
"all"
));
if
(
submakes
[
i
]
->
testdll
)
...
...
@@ -3620,14 +3626,19 @@ static void output_subdirs( struct makefile *make )
strarray_add_uniq
(
&
make
->
phony_targets
,
"check"
);
strarray_add_uniq
(
&
make
->
phony_targets
,
"test"
);
if
(
get_expanded_make_variable
(
make
,
"GETTEXTPO_LIBS"
))
output_po_files
(
make
);
output
(
"clean::
\n
"
);
output_rm_filenames
(
clean_files
);
output
(
"testclean::
\n
"
);
output_rm_filenames
(
testclean_files
);
output
(
"distclean::
\n
"
);
output_rm_filenames
(
distclean_files
);
output
(
"maintainer-clean::
\n
"
);
output_rm_filenames
(
make
->
maintainerclean_files
);
strarray_add_uniq
(
&
make
->
phony_targets
,
"distclean"
);
strarray_add_uniq
(
&
make
->
phony_targets
,
"testclean"
);
strarray_add_uniq
(
&
make
->
phony_targets
,
"maintainer-clean"
);
if
(
tooldeps_deps
.
count
)
{
...
...
@@ -3637,8 +3648,6 @@ static void output_subdirs( struct makefile *make )
strarray_add_uniq
(
&
make
->
phony_targets
,
"__tooldeps__"
);
}
if
(
get_expanded_make_variable
(
make
,
"GETTEXTPO_LIBS"
))
output_po_files
(
make
);
if
(
make
->
phony_targets
.
count
)
{
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