Commit dbb55ed9 authored by Alexandre Julliard's avatar Alexandre Julliard

makefiles: Add install-test target to install winetest.exe.

parent f9cad1bd
......@@ -19,4 +19,4 @@ EXTRA_OBJS = build.res
EXTRA_TARGETS = build.nfo
INSTALL_LIB = none
INSTALL_TEST = winetest.exe
......@@ -14,8 +14,9 @@
- build32/config.cache
- build64/config.cache
before_script:
- export CCACHE_BASEDIR="$PWD"
- export CCACHE_DIR="$PWD/ccache"
- export BASEDIR="$PWD"
- export CCACHE_BASEDIR="$BASEDIR"
- export CCACHE_DIR="$BASEDIR/ccache"
- export CCACHE_COMPILERCHECK=content
- export PATH="/usr/lib/ccache:$PATH"
- mkdir -p build32 build64
......@@ -60,12 +61,11 @@ build-winetest:
- winetest64.exe
script:
- cd build64
- ../configure -C --enable-win64 --with-mingw
- make -s -j$(nproc) programs/winetest/winetest.exe
- ../configure -q -C --enable-win64 --with-mingw
- make -s -j$(nproc) install-test DESTDIR=$BASEDIR
- cd ../build32
- ../configure -C --with-mingw
- make -s -j$(nproc) programs/winetest/winetest.exe
- ../configure -q -C --with-mingw
- make -s -j$(nproc) install-test DESTDIR=$BASEDIR
- cd ..
- mv build32/programs/winetest/winetest.exe winetest.exe
- mv build64/programs/winetest/winetest.exe winetest64.exe
- chmod 644 winetest.exe winetest64.exe
- mv usr/local/lib/wine/i386-windows/winetest.exe winetest.exe
- mv usr/local/lib/wine/x86_64-windows/winetest.exe winetest64.exe
......@@ -122,9 +122,9 @@ static const struct
static struct list files[HASH_SIZE];
static struct list global_includes[HASH_SIZE];
enum install_rules { INSTALL_LIB, INSTALL_DEV, NB_INSTALL_RULES };
static const char *install_targets[NB_INSTALL_RULES] = { "install-lib", "install-dev" };
static const char *install_variables[NB_INSTALL_RULES] = { "INSTALL_LIB", "INSTALL_DEV" };
enum install_rules { INSTALL_LIB, INSTALL_DEV, INSTALL_TEST, NB_INSTALL_RULES };
static const char *install_targets[NB_INSTALL_RULES] = { "install-lib", "install-dev", "install-test" };
static const char *install_variables[NB_INSTALL_RULES] = { "INSTALL_LIB", "INSTALL_DEV", "INSTALL_TEST" };
/* variables common to all makefiles */
static struct strarray linguas;
......@@ -3624,10 +3624,14 @@ static void output_subdirs( struct makefile *make )
for (j = 0; j < NB_INSTALL_RULES; j++)
{
if (!install_deps[j].count) continue;
output( "install %s::", install_targets[j] );
if (strcmp( install_targets[j], "install-test" ))
{
output( "install " );
strarray_add_uniq( &make->phony_targets, "install" );
}
output( "%s::", install_targets[j] );
output_filenames( install_deps[j] );
output( "\n" );
strarray_add_uniq( &make->phony_targets, "install" );
strarray_add_uniq( &make->phony_targets, install_targets[j] );
}
output_uninstall_rules( make );
......
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