Commit 5cd33959 authored by Alexandre Julliard's avatar Alexandre Julliard

makefiles: Generate rules for installing scripts.

parent da340169
...@@ -150,6 +150,7 @@ struct makefile ...@@ -150,6 +150,7 @@ struct makefile
struct strarray include_args; struct strarray include_args;
struct strarray define_args; struct strarray define_args;
struct strarray programs; struct strarray programs;
struct strarray scripts;
struct strarray appmode; struct strarray appmode;
struct strarray imports; struct strarray imports;
struct strarray delayimports; struct strarray delayimports;
...@@ -2488,6 +2489,10 @@ static struct strarray output_sources( struct makefile *make, struct strarray *t ...@@ -2488,6 +2489,10 @@ static struct strarray output_sources( struct makefile *make, struct strarray *t
strmake( "p$(bindir)/%s", program )); 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) if (all_targets.count)
{ {
output( "all:" ); output( "all:" );
...@@ -2775,6 +2780,7 @@ static void update_makefile( const char *path ) ...@@ -2775,6 +2780,7 @@ static void update_makefile( const char *path )
make->importlib = get_expanded_make_variable( make, "IMPORTLIB" ); make->importlib = get_expanded_make_variable( make, "IMPORTLIB" );
make->programs = get_expanded_make_var_array( make, "PROGRAMS" ); 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->appmode = get_expanded_make_var_array( make, "APPMODE" );
make->imports = get_expanded_make_var_array( make, "IMPORTS" ); make->imports = get_expanded_make_var_array( make, "IMPORTS" );
make->delayimports = get_expanded_make_var_array( make, "DELAYIMPORTS" ); make->delayimports = get_expanded_make_var_array( make, "DELAYIMPORTS" );
......
PROGRAMS = winedump PROGRAMS = winedump
MANPAGES = winedump.man.in MANPAGES = winedump.man.in
SCRIPTS = function_grep.pl
C_SRCS = \ C_SRCS = \
debug.c \ debug.c \
...@@ -23,10 +24,4 @@ C_SRCS = \ ...@@ -23,10 +24,4 @@ C_SRCS = \
symbol.c \ symbol.c \
tlb.c tlb.c
INSTALL_DEV = $(PROGRAMS) INSTALL_DEV = $(PROGRAMS) $(SCRIPTS)
install install-dev::
$(INSTALL_SCRIPT) $(srcdir)/function_grep.pl $(DESTDIR)$(bindir)/function_grep.pl
uninstall::
$(RM) $(DESTDIR)$(bindir)/function_grep.pl
SCRIPTS = winemaker
MANPAGES = \ MANPAGES = \
winemaker.de.UTF-8.man.in \ winemaker.de.UTF-8.man.in \
winemaker.fr.UTF-8.man.in \ winemaker.fr.UTF-8.man.in \
winemaker.man.in winemaker.man.in
INSTALL_DEV = winemaker INSTALL_DEV = $(SCRIPTS)
install install-dev::
$(INSTALL_SCRIPT) $(srcdir)/winemaker $(DESTDIR)$(bindir)/winemaker
uninstall::
$(RM) $(DESTDIR)$(bindir)/winemaker
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment