Alexandre Julliard : makefiles: Generate rules for installing scripts.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Oct 29 09:32:12 CDT 2015
Module: wine
Branch: master
Commit: 5cd3395975f687ba8390fddda38bd110d98b30ed
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5cd3395975f687ba8390fddda38bd110d98b30ed
Author: Alexandre Julliard <julliard at winehq.org>
Date: Thu Oct 29 14:43:54 2015 +0900
makefiles: Generate rules for installing scripts.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
tools/makedep.c | 6 ++++++
tools/winedump/Makefile.in | 9 ++-------
tools/winemaker/Makefile.in | 10 +++-------
3 files changed, 11 insertions(+), 14 deletions(-)
diff --git a/tools/makedep.c b/tools/makedep.c
index 9a21397..ffd286f 100644
--- a/tools/makedep.c
+++ b/tools/makedep.c
@@ -150,6 +150,7 @@ struct makefile
struct strarray include_args;
struct strarray define_args;
struct strarray programs;
+ struct strarray scripts;
struct strarray appmode;
struct strarray imports;
struct strarray delayimports;
@@ -2488,6 +2489,10 @@ static struct strarray output_sources( struct makefile *make, struct strarray *t
strmake( "p$(bindir)/%s", program ));
}
+ for (i = 0; i < make->scripts.count; i++)
+ add_install_rule( make, make->scripts.str[i], make->scripts.str[i],
+ strmake( "S$(bindir)/%s", make->scripts.str[i] ));
+
if (all_targets.count)
{
output( "all:" );
@@ -2775,6 +2780,7 @@ static void update_makefile( const char *path )
make->importlib = get_expanded_make_variable( make, "IMPORTLIB" );
make->programs = get_expanded_make_var_array( make, "PROGRAMS" );
+ make->scripts = get_expanded_make_var_array( make, "SCRIPTS" );
make->appmode = get_expanded_make_var_array( make, "APPMODE" );
make->imports = get_expanded_make_var_array( make, "IMPORTS" );
make->delayimports = get_expanded_make_var_array( make, "DELAYIMPORTS" );
diff --git a/tools/winedump/Makefile.in b/tools/winedump/Makefile.in
index a93f078..b55ac72 100644
--- a/tools/winedump/Makefile.in
+++ b/tools/winedump/Makefile.in
@@ -1,5 +1,6 @@
PROGRAMS = winedump
MANPAGES = winedump.man.in
+SCRIPTS = function_grep.pl
C_SRCS = \
debug.c \
@@ -23,10 +24,4 @@ C_SRCS = \
symbol.c \
tlb.c
-INSTALL_DEV = $(PROGRAMS)
-
-install install-dev::
- $(INSTALL_SCRIPT) $(srcdir)/function_grep.pl $(DESTDIR)$(bindir)/function_grep.pl
-
-uninstall::
- $(RM) $(DESTDIR)$(bindir)/function_grep.pl
+INSTALL_DEV = $(PROGRAMS) $(SCRIPTS)
diff --git a/tools/winemaker/Makefile.in b/tools/winemaker/Makefile.in
index 6afa016..37e345d 100644
--- a/tools/winemaker/Makefile.in
+++ b/tools/winemaker/Makefile.in
@@ -1,12 +1,8 @@
+SCRIPTS = winemaker
+
MANPAGES = \
winemaker.de.UTF-8.man.in \
winemaker.fr.UTF-8.man.in \
winemaker.man.in
-INSTALL_DEV = winemaker
-
-install install-dev::
- $(INSTALL_SCRIPT) $(srcdir)/winemaker $(DESTDIR)$(bindir)/winemaker
-
-uninstall::
- $(RM) $(DESTDIR)$(bindir)/winemaker
+INSTALL_DEV = $(SCRIPTS)
More information about the wine-cvs
mailing list