put result of make test-install into top-level test-install dir

... and rename all DEVINSTALL variables to TESTINSTALL.

Change-Id: I2f745ff6324c078d5fd7d272911a9268fc5efd27
This commit is contained in:
Michael Stahl 2013-10-01 15:30:08 +02:00
parent be59288ff4
commit f1d0889058
7 changed files with 31 additions and 31 deletions

View file

@ -145,7 +145,7 @@ $(foreach target,$(gbuild_TARGETS),$(target)_% $(foreach module,$(gbuild_modules
clean: clean-host clean-build clean: clean-host clean-build
clean-host: clean-host:
rm -fr $(DEVINSTALLDIR) rm -fr $(TESTINSTALLDIR)
rm -fr $(INSTDIR) rm -fr $(INSTDIR)
rm -fr $(OUTDIR) rm -fr $(OUTDIR)
rm -fr $(WORKDIR) rm -fr $(WORKDIR)
@ -282,14 +282,14 @@ endif
@false @false
test-install: build test-install: build
@rm -rf $(DEVINSTALLDIR) @rm -rf $(TESTINSTALLDIR)
@mkdir $(DEVINSTALLDIR) @mkdir $(TESTINSTALLDIR)
ifeq ($(OS_FOR_BUILD),WNT) ifeq ($(OS_FOR_BUILD),WNT)
cd $(SRCDIR)/instsetoo_native && $(GNUMAKE) LIBO_DEV_INSTALL=TRUE $(GMAKE_OPTIONS) cd $(SRCDIR)/instsetoo_native && $(GNUMAKE) LIBO_TEST_INSTALL=TRUE $(GMAKE_OPTIONS)
else else
@ooinstall $(DEVINSTALLDIR)/opt @ooinstall $(TESTINSTALLDIR)/opt
ifneq ($(MACOSX_CODESIGNING_IDENTITY),) ifneq ($(MACOSX_CODESIGNING_IDENTITY),)
@macosx-codesign-app-bundle $(DEVINSTALLDIR)/opt/LibreOffice.app @macosx-codesign-app-bundle $(TESTINSTALLDIR)/opt/LibreOffice.app
endif endif
ifneq ($(OS),MACOSX) ifneq ($(OS),MACOSX)
@install-gdb-printers -L @install-gdb-printers -L
@ -303,26 +303,26 @@ ifeq ($(OS),LINUX)
@echo @echo
@echo "Test installation finished, you can now execute:" @echo "Test installation finished, you can now execute:"
@echo @echo
@echo "$(DEVINSTALLDIR)/program/soffice" @echo "$(TESTINSTALLDIR)/program/soffice"
else ifeq ($(OS),MACOSX) else ifeq ($(OS),MACOSX)
@echo @echo
@echo "Developer installation finished, you can now run:" @echo "Developer installation finished, you can now run:"
@echo @echo
@echo " open $(DEVINSTALLDIR)/LibreOffice.app" @echo " open $(TESTINSTALLDIR)/LibreOffice.app"
@echo @echo
@echo "To debug: gdb $(DEVINSTALLDIR)/LibreOffice.app/Contents/MacOS/soffice" @echo "To debug: gdb $(TESTINSTALLDIR)/LibreOffice.app/Contents/MacOS/soffice"
endif endif
install-tb: install-tb:
@rm -rf $(DEVINSTALLDIR) @rm -rf $(TESTINSTALLDIR)
@mkdir $(DEVINSTALLDIR) @mkdir $(TESTINSTALLDIR)
ifeq ($(OS_FOR_BUILD),WNT) ifeq ($(OS_FOR_BUILD),WNT)
cd $(SRCDIR)/instsetoo_native && $(GNUMAKE) LIBO_DEV_INSTALL=TRUE $(GMAKE_OPTIONS) cd $(SRCDIR)/instsetoo_native && $(GNUMAKE) LIBO_TEST_INSTALL=TRUE $(GMAKE_OPTIONS)
else else
@ooinstall $(DEVINSTALLDIR)/opt @ooinstall $(TESTINSTALLDIR)/opt
@install-gdb-printers @install-gdb-printers
endif endif
@rm -f $(BUILDDIR)/install && ln -s $(DEVINSTALLDIR)/opt/ $(BUILDDIR)/install @rm -f $(BUILDDIR)/install && ln -s $(TESTINSTALLDIR)/opt/ $(BUILDDIR)/install
distro-pack-install: install distro-pack-install: install
$(SRCDIR)/bin/distro-install-clean-up $(SRCDIR)/bin/distro-install-clean-up

View file

@ -86,7 +86,6 @@ export DBUSMENUGTK_LIBS=$(gb_SPACE)@DBUSMENUGTK_LIBS@
export DBUS_CFLAGS=$(gb_SPACE)@DBUS_CFLAGS@ export DBUS_CFLAGS=$(gb_SPACE)@DBUS_CFLAGS@
export DBUS_LIBS=$(gb_SPACE)@DBUS_LIBS@ export DBUS_LIBS=$(gb_SPACE)@DBUS_LIBS@
export DEFAULT_BRAND_IMAGES=@DEFAULT_BRAND_IMAGES@ export DEFAULT_BRAND_IMAGES=@DEFAULT_BRAND_IMAGES@
export DEVINSTALLDIR=@DEVINSTALLDIR@
export DIAGRAM_EXTENSION_PACK=@DIAGRAM_EXTENSION_PACK@ export DIAGRAM_EXTENSION_PACK=@DIAGRAM_EXTENSION_PACK@
export DICT_SYSTEM_DIR=@DICT_SYSTEM_DIR@ export DICT_SYSTEM_DIR=@DICT_SYSTEM_DIR@
export DISABLE_ACTIVEX=@DISABLE_ACTIVEX@ export DISABLE_ACTIVEX=@DISABLE_ACTIVEX@
@ -553,6 +552,7 @@ export TDE_CFLAGS=$(gb_SPACE)@TDE_CFLAGS@
export TDE_LIBS=$(gb_SPACE)@TDE_LIBS@ export TDE_LIBS=$(gb_SPACE)@TDE_LIBS@
export TELEPATHY_CFLAGS=$(gb_SPACE)@TELEPATHY_CFLAGS@ export TELEPATHY_CFLAGS=$(gb_SPACE)@TELEPATHY_CFLAGS@
export TELEPATHY_LIBS=$(gb_SPACE)@TELEPATHY_LIBS@ export TELEPATHY_LIBS=$(gb_SPACE)@TELEPATHY_LIBS@
export TESTINSTALLDIR=@TESTINSTALLDIR@
export THES_SYSTEM_DIR=@THES_SYSTEM_DIR@ export THES_SYSTEM_DIR=@THES_SYSTEM_DIR@
export TLS=@TLS@ export TLS=@TLS@
export TMPDIR=@TEMP_DIRECTORY@ export TMPDIR=@TEMP_DIRECTORY@

View file

@ -12263,8 +12263,8 @@ AC_SUBST(DOCDIR)
INSTALLDIR="$LIBDIR/$INSTALLDIRNAME" INSTALLDIR="$LIBDIR/$INSTALLDIRNAME"
AC_SUBST(INSTALLDIR) AC_SUBST(INSTALLDIR)
DEVINSTALLDIR="$OUTDIR/installation" TESTINSTALLDIR="${BUILDDIR}/test-install/${INPATH}"
AC_SUBST(DEVINSTALLDIR) AC_SUBST(TESTINSTALLDIR)
# =================================================================== # ===================================================================
# De- or increase default verbosity of build process # De- or increase default verbosity of build process

View file

@ -95,20 +95,20 @@ endef
$(call gb_CustomTarget_get_workdir,instsetoo_native/install)/install.phony: $(call gb_CustomTarget_get_workdir,instsetoo_native/install)/install.phony:
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),PRL,2) $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),PRL,2)
rm -rf $(instsetoo_OUT) rm -rf $(instsetoo_OUT)
ifeq (TRUE,$(LIBO_DEV_INSTALL)) ifeq (TRUE,$(LIBO_TEST_INSTALL))
$(call instsetoo_native_install_command,openoffice,en-US,,,archive) $(call instsetoo_native_install_command,openoffice,en-US,,,archive)
unzip -q -d $(DEVINSTALLDIR) $(instsetoo_OUT)/LibreOffice$(if $(ENABLE_RELEASE_BUILD),,_Dev)/archive/install/en-US/LibreOffice*_archive.zip unzip -q -d $(TESTINSTALLDIR) $(instsetoo_OUT)/LibreOffice$(if $(ENABLE_RELEASE_BUILD),,_Dev)/archive/install/en-US/LibreOffice*_archive.zip
mv $(DEVINSTALLDIR)/LibreOffice*_archive/* $(DEVINSTALLDIR)/opt mv $(TESTINSTALLDIR)/LibreOffice*_archive/* $(TESTINSTALLDIR)/opt
rmdir $(DEVINSTALLDIR)/LibreOffice*_archive rmdir $(TESTINSTALLDIR)/LibreOffice*_archive
ifeq (ODK,$(filter ODK,$(BUILD_TYPE))) ifeq (ODK,$(filter ODK,$(BUILD_TYPE)))
$(call instsetoo_native_install_command,sdkoo,en-US,_SDK,,archive) $(call instsetoo_native_install_command,sdkoo,en-US,_SDK,,archive)
unzip -q -d $(DEVINSTALLDIR) $(instsetoo_OUT)/LibreOffice$(if $(ENABLE_RELEASE_BUILD),,_Dev)_SDK/archive/install/en-US/LibreOffice*_archive_sdk.zip unzip -q -d $(TESTINSTALLDIR) $(instsetoo_OUT)/LibreOffice$(if $(ENABLE_RELEASE_BUILD),,_Dev)_SDK/archive/install/en-US/LibreOffice*_archive_sdk.zip
mv $(DEVINSTALLDIR)/LibreOffice*_archive_sdk/LibreOffice*_SDK/sdk \ mv $(TESTINSTALLDIR)/LibreOffice*_archive_sdk/LibreOffice*_SDK/sdk \
$(DEVINSTALLDIR)/opt/ $(TESTINSTALLDIR)/opt/
rmdir $(DEVINSTALLDIR)/LibreOffice*_archive_sdk/LibreOffice*_SDK rmdir $(TESTINSTALLDIR)/LibreOffice*_archive_sdk/LibreOffice*_SDK
rmdir $(DEVINSTALLDIR)/LibreOffice*_archive_sdk rmdir $(TESTINSTALLDIR)/LibreOffice*_archive_sdk
endif endif
else # LIBO_DEV_INSTALL else # LIBO_TEST_INSTALL
$(call instsetoo_native_install_command,openoffice,$(if $(filter WNT,$(OS)),$(instsetoo_native_WITH_LANG),en-US),,,$(PKGFORMAT)) $(call instsetoo_native_install_command,openoffice,$(if $(filter WNT,$(OS)),$(instsetoo_native_WITH_LANG),en-US),,,$(PKGFORMAT))
ifeq (ODK,$(filter ODK,$(BUILD_TYPE))) ifeq (ODK,$(filter ODK,$(BUILD_TYPE)))
$(call instsetoo_native_install_command,sdkoo,en-US,_SDK,,$(PKGFORMAT)) $(call instsetoo_native_install_command,sdkoo,en-US,_SDK,,$(PKGFORMAT))
@ -124,6 +124,6 @@ ifneq (WNT,$(OS))
$(foreach lang,$(instsetoo_native_WITH_LANG),\ $(foreach lang,$(instsetoo_native_WITH_LANG),\
$(call instsetoo_native_install_command,ooolangpack,$(lang),,-languagepack,$(PKGFORMAT))) $(call instsetoo_native_install_command,ooolangpack,$(lang),,-languagepack,$(PKGFORMAT)))
endif endif
endif # LIBO_DEV_INSTALL endif # LIBO_TEST_INSTALL
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:

View file

@ -24,7 +24,7 @@ include $(SOLARENV)/gbuild/gbuild.mk
findunusedcode: findunusedcode:
$(GNUMAKE) BUILDDIR=callcatcher -j $(PARALLELISM) $(GMAKE_OPTIONS) -f Makefile.gbuild $(GNUMAKE) BUILDDIR=callcatcher -j $(PARALLELISM) $(GMAKE_OPTIONS) -f Makefile.gbuild
ooinstall -l $(DEVINSTALLDIR)/opt ooinstall -l $(TESTINSTALLDIR)/opt
$(GNUMAKE) BUILDDIR=callcatcher -j $(PARALLELISM) $(GMAKE_OPTIONS) -f Makefile.gbuild subsequentcheck $(GNUMAKE) BUILDDIR=callcatcher -j $(PARALLELISM) $(GMAKE_OPTIONS) -f Makefile.gbuild subsequentcheck
callanalyse $(WORKDIR)/LinkTarget/*/* $(WORKDIR)/LinkTarget/*/*/* \ callanalyse $(WORKDIR)/LinkTarget/*/* $(WORKDIR)/LinkTarget/*/*/* \
$(WORKDIR)/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit.so* \ $(WORKDIR)/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit.so* \

View file

@ -9,7 +9,7 @@
GDBDIR="${SOLARENV}/gdb" GDBDIR="${SOLARENV}/gdb"
SOLVERLIBDIR="${SOLARVER}/${INPATH}/lib" SOLVERLIBDIR="${SOLARVER}/${INPATH}/lib"
INSTALLDIR="${DEVINSTALLDIR}/opt" INSTALLDIR="${TESTINSTALLDIR}/opt"
DYLIB=so DYLIB=so
if [ "$(uname)" = Darwin ]; then if [ "$(uname)" = Darwin ]; then
INSTALLDIR=$INSTALLDIR/LibreOffice.app/Contents INSTALLDIR=$INSTALLDIR/LibreOffice.app/Contents

View file

@ -262,7 +262,7 @@ gb_GLOBALDEFS += \
gb_GLOBALDEFS := $(sort $(gb_GLOBALDEFS)) gb_GLOBALDEFS := $(sort $(gb_GLOBALDEFS))
gb_USER_INSTALLATION = $(call gb_Helper_make_url,$(DEVINSTALLDIR)/) gb_USER_INSTALLATION = $(call gb_Helper_make_url,$(TESTINSTALLDIR)/)
include $(GBUILDDIR)/Deliver.mk include $(GBUILDDIR)/Deliver.mk