mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
Fix make install with --disable-installed-tests
If installed tests are not enabled, installed_testdir is not defined, so we end up trying to create /modules and to chmod things in /x-content/, which is not right.
This commit is contained in:
parent
c09cfc1c8a
commit
2b289cc565
@ -542,5 +542,7 @@ giotypefuncs.c: Makefile
|
||||
$(SED) -e 's/^/*tp++ = /' -e 's/$$/ ();/' >> xgen-gio && \
|
||||
cp xgen-gio $@ # && rm -f xgen-gio xgen-giosrc.c
|
||||
|
||||
if ENABLE_INSTALLED_TESTS
|
||||
install-data-hook:
|
||||
$(AM_V_at) chmod a+x $(DESTDIR)$(installed_testdir)/x-content/win32-software/autorun.exe
|
||||
endif
|
||||
|
@ -7,16 +7,27 @@ LDADD = \
|
||||
$(top_builddir)/glib/libglib-2.0.la \
|
||||
$(NULL)
|
||||
|
||||
|
||||
AM_CPPFLAGS = \
|
||||
$(gio_INCLUDES) $(GLIB_DEBUG_FLAGS) \
|
||||
-I$(top_builddir)/gio \
|
||||
-I$(top_srcdir)/gio
|
||||
-I$(top_srcdir)/gio \
|
||||
$(NULL)
|
||||
|
||||
modules = \
|
||||
libtestmodulea.la \
|
||||
libtestmoduleb.la \
|
||||
$(NULL)
|
||||
|
||||
if ENABLE_ALWAYS_BUILD_TESTS
|
||||
noinst_LTLIBRARIES = $(modules)
|
||||
else
|
||||
check_LTLIBRARIES = $(modules)
|
||||
endif
|
||||
|
||||
if ENABLE_INSTALLED_TESTS
|
||||
testmoduledir = $(installed_testdir)/modules
|
||||
testmodule_LTLIBRARIES = \
|
||||
libtestmodulea.la \
|
||||
libtestmoduleb.la
|
||||
testmodule_LTLIBRARIES = $(modules)
|
||||
endif
|
||||
|
||||
libtestmodulea_la_SOURCES = test-module-a.c
|
||||
libtestmodulea_la_LIBADD = $(LDADD)
|
||||
|
Loading…
Reference in New Issue
Block a user