2011-08-09 12:12:48 -05:00
|
|
|
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
2012-05-15 07:47:37 -05:00
|
|
|
#
|
2013-04-24 11:14:03 -05:00
|
|
|
# This file is part of the LibreOffice project.
|
2012-05-15 07:47:37 -05:00
|
|
|
#
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
#
|
2012-01-24 15:48:30 -06:00
|
|
|
|
2013-10-01 08:08:15 -05:00
|
|
|
.PHONY : all bootstrap build check clean clean-build clean-host test-install distclean distro-pack-install docs download fetch findunusedcode get-submodules id install install-strip install-tb subsequentcheck tags
|
2012-12-23 12:27:28 -06:00
|
|
|
|
2012-01-26 16:29:26 -06:00
|
|
|
ifeq ($(MAKECMDGOALS),)
|
|
|
|
MAKECMDGOALS:=all
|
|
|
|
endif
|
|
|
|
|
2013-03-27 05:07:58 -05:00
|
|
|
SHELL=/usr/bin/env bash
|
2012-12-23 12:27:28 -06:00
|
|
|
SRCDIR := @SRC_ROOT@
|
|
|
|
BUILDDIR := @BUILDDIR@
|
2013-05-30 09:12:22 -05:00
|
|
|
GIT_BUILD := $(if $(wildcard $(SRCDIR)/.git),T)
|
2012-01-24 15:48:30 -06:00
|
|
|
|
2013-05-30 09:12:22 -05:00
|
|
|
# Run autogen.sh if needed and force make to restart itself.
|
|
|
|
# ... but there are several cases where we do not want to run
|
|
|
|
# autogen.sh:
|
|
|
|
# 1. if we are building from tarballs, not git checkout (I do not
|
|
|
|
# think packagers would ever want that. I certainly do not.)
|
|
|
|
# 2. if we are making help, clean or distclean, because they do not
|
|
|
|
# need updated configuration
|
|
|
|
ifeq (,$(MAKE_RESTARTS)$(if $(GIT_BUILD),,T)$(if $(filter-out help clean distclean,$(MAKECMDGOALS)),,T))
|
2012-03-06 16:43:07 -06:00
|
|
|
|
2012-12-23 12:27:28 -06:00
|
|
|
.PHONY : force-restart
|
|
|
|
Makefile: $(BUILDDIR)/config_host.mk force-restart
|
|
|
|
@touch $@
|
2012-01-26 14:26:49 -06:00
|
|
|
|
2012-05-15 07:47:37 -05:00
|
|
|
# run configure in an environment not polluted by config_host.mk
|
2012-12-11 08:39:49 -06:00
|
|
|
$(BUILDDIR)/config_host.mk : \
|
2012-05-15 07:47:37 -05:00
|
|
|
$(SRCDIR)/config_host.mk.in \
|
2012-12-11 07:49:24 -06:00
|
|
|
$(SRCDIR)/Makefile.in \
|
2013-01-18 15:11:53 -06:00
|
|
|
$(SRCDIR)/instsetoo_native/util/openoffice.lst.in \
|
2012-10-19 15:59:21 -05:00
|
|
|
$(SRCDIR)/configure.ac \
|
2013-07-24 05:15:19 -05:00
|
|
|
$(wildcard $(SRCDIR)/config_host/*.h.in) \
|
2013-03-28 08:26:25 -05:00
|
|
|
$(if $(wildcard $(BUILDDIR)/autogen.input),$(BUILDDIR)/autogen.input,$(if $(wildcard $(BUILDDIR)/autogen.lastrun),$(BUILDDIR)/autogen.lastrun))
|
2012-12-11 07:49:24 -06:00
|
|
|
$(SRCDIR)/autogen.sh
|
2012-01-26 14:26:49 -06:00
|
|
|
|
2013-03-28 08:26:25 -05:00
|
|
|
# dummy rule in case any of the above prerequisites are removed, so
|
|
|
|
# that a stale Makefile still triggers autogen.sh, or in case
|
|
|
|
# autogen.input does not exist, or autogen.lastrun does not yet exist
|
2013-03-04 01:49:23 -06:00
|
|
|
$(SRCDIR)/config_host.mk.in \
|
|
|
|
$(SRCDIR)/Makefile.in \
|
|
|
|
$(SRCDIR)/instsetoo_native/util/openoffice.lst.in \
|
|
|
|
$(SRCDIR)/configure.ac \
|
2013-03-28 08:26:25 -05:00
|
|
|
$(BUILDDIR)/autogen.input \
|
2012-12-11 08:39:49 -06:00
|
|
|
$(BUILDDIR)/autogen.lastrun:
|
2012-02-26 12:53:09 -06:00
|
|
|
@true
|
|
|
|
|
2012-12-23 12:27:28 -06:00
|
|
|
else # MAKE_RESTARTS
|
|
|
|
|
|
|
|
all: build
|
|
|
|
|
|
|
|
ifeq ($(gb_Side),)
|
2013-02-27 11:40:36 -06:00
|
|
|
gb_Side := host
|
2012-12-23 12:27:28 -06:00
|
|
|
endif
|
|
|
|
|
|
|
|
include $(BUILDDIR)/config_$(gb_Side).mk
|
|
|
|
|
|
|
|
ifeq ($(GMAKE_OPTIONS),)
|
|
|
|
ifeq ($(verbose)$(VERBOSE),)
|
2013-03-04 18:16:59 -06:00
|
|
|
export GMAKE_OPTIONS:=-rs$(MAKEFLAGS)
|
2012-12-23 12:27:28 -06:00
|
|
|
else
|
2013-03-04 18:16:59 -06:00
|
|
|
export GMAKE_OPTIONS:=-r$(MAKEFLAGS)
|
2012-12-23 12:27:28 -06:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2013-02-27 11:40:36 -06:00
|
|
|
#
|
|
|
|
# Partial Build
|
|
|
|
#
|
2012-12-23 12:27:28 -06:00
|
|
|
define gbuild_module_rules
|
2013-02-27 04:32:18 -06:00
|
|
|
.PHONY: $(1) $(1).all $(1).build $(1).check $(1).clean $(1).showdeliverables $(1).subsequentcheck
|
2012-12-23 12:27:28 -06:00
|
|
|
|
|
|
|
$(1): bootstrap fetch
|
2013-02-28 04:33:12 -06:00
|
|
|
cd $(SRCDIR)/$(1) && $(GNUMAKE) -j $(PARALLELISM) $(GMAKE_OPTIONS)
|
2012-12-23 12:27:28 -06:00
|
|
|
|
2013-02-27 04:32:18 -06:00
|
|
|
$(1).build $(1).check $(1).clean $(1).showdeliverables:
|
2013-02-28 04:33:12 -06:00
|
|
|
cd $(SRCDIR)/$(1) && $(GNUMAKE) -j $(PARALLELISM) $(GMAKE_OPTIONS) $$(patsubst $(1).%,%,$$@)
|
2012-12-23 12:27:28 -06:00
|
|
|
|
|
|
|
$(1).subsequentcheck:
|
2013-02-28 04:33:12 -06:00
|
|
|
cd $(SRCDIR)/$(1) && $(GNUMAKE) -j $(CHECK_PARALLELISM) $(GMAKE_OPTIONS) subsequentcheck
|
2012-12-23 12:27:28 -06:00
|
|
|
|
2013-02-26 08:15:22 -06:00
|
|
|
$(1).all: bootstrap fetch
|
2013-03-27 04:07:04 -05:00
|
|
|
$(GNUMAKE) -j $(PARALLELISM) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild $(WORKDIR)/Module/$(1) $(if $(CROSS_COMPILING),,$(WORKDIR)/Module/check/$(1) $(WORKDIR)/Module/slowcheck/$(1))
|
2013-02-26 08:15:22 -06:00
|
|
|
|
2012-12-23 12:27:28 -06:00
|
|
|
endef
|
|
|
|
|
|
|
|
define gbuild_modules_rules
|
|
|
|
$(foreach m,$(1),$(call gbuild_module_rules,$(m)))
|
|
|
|
endef
|
|
|
|
|
2013-03-24 08:34:55 -05:00
|
|
|
gbuild_modules := $(filter-out Module%,$(subst /, ,$(subst $(SRCDIR)/,,$(wildcard $(SRCDIR)/*/Module_*.mk))))
|
|
|
|
|
|
|
|
$(eval $(call gbuild_modules_rules,$(gbuild_modules)))
|
2012-12-23 12:27:28 -06:00
|
|
|
|
2013-03-02 12:06:22 -06:00
|
|
|
gbuild_TARGETS := AllLangHelp \
|
2013-05-07 05:29:34 -05:00
|
|
|
AllLangPackage \
|
2013-03-02 12:06:22 -06:00
|
|
|
AllLangResTarget \
|
2013-06-09 17:56:28 -05:00
|
|
|
AutoInstall \
|
2013-03-02 12:06:22 -06:00
|
|
|
CliLibrary \
|
|
|
|
CliNativeLibrary \
|
|
|
|
CliUnoApiTarget \
|
|
|
|
Configuration \
|
|
|
|
CppunitTest \
|
|
|
|
CustomTarget \
|
|
|
|
Dictionary \
|
|
|
|
Executable \
|
|
|
|
Extension \
|
|
|
|
ExternalPackage \
|
|
|
|
ExternalProject \
|
2013-05-04 06:21:33 -05:00
|
|
|
GeneratedPackage \
|
2013-03-02 12:06:22 -06:00
|
|
|
InstallModule \
|
|
|
|
InstallScript \
|
|
|
|
InternalUnoApi \
|
|
|
|
Jar \
|
|
|
|
JunitTest \
|
|
|
|
Library \
|
|
|
|
Module \
|
|
|
|
Package \
|
2013-04-07 02:45:19 -05:00
|
|
|
PackageSet \
|
2013-03-02 12:06:22 -06:00
|
|
|
Pagein \
|
2013-05-24 08:49:11 -05:00
|
|
|
Postprocess \
|
2013-03-02 12:06:22 -06:00
|
|
|
Pyuno \
|
2013-04-18 15:59:25 -05:00
|
|
|
PythonTest \
|
2013-03-02 12:06:22 -06:00
|
|
|
Rdb \
|
|
|
|
StaticLibrary \
|
2013-04-06 06:10:54 -05:00
|
|
|
UIConfig \
|
2013-03-02 12:06:22 -06:00
|
|
|
UnoApi \
|
|
|
|
UnpackedTarball \
|
|
|
|
WinResTarget \
|
2013-03-31 04:34:10 -05:00
|
|
|
Zip \
|
2013-04-14 01:18:27 -05:00
|
|
|
|
2013-03-02 12:06:22 -06:00
|
|
|
# build a generic gbuild target
|
2013-03-24 08:34:55 -05:00
|
|
|
$(foreach target,$(gbuild_TARGETS),$(target)_% $(foreach module,$(gbuild_modules),$(target)_$(module)/%)):
|
2013-03-04 08:32:05 -06:00
|
|
|
$(GNUMAKE) -j $(PARALLELISM) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild $@
|
2012-12-23 12:27:28 -06:00
|
|
|
|
|
|
|
#
|
|
|
|
# Clean
|
|
|
|
#
|
|
|
|
clean: clean-host clean-build
|
|
|
|
|
|
|
|
clean-host:
|
2013-10-01 08:30:08 -05:00
|
|
|
rm -fr $(TESTINSTALLDIR)
|
2013-04-03 10:13:32 -05:00
|
|
|
rm -fr $(INSTDIR)
|
2012-12-23 12:27:28 -06:00
|
|
|
rm -fr $(OUTDIR)
|
|
|
|
rm -fr $(WORKDIR)
|
|
|
|
rm -fr install
|
|
|
|
|
|
|
|
clean-build:
|
|
|
|
ifeq ($(CROSS_COMPILING),YES)
|
2013-09-25 02:44:35 -05:00
|
|
|
rm -fr $(INSTDIR_FOR_BUILD)
|
2013-02-27 11:40:36 -06:00
|
|
|
rm -fr $(OUTDIR_FOR_BUILD)
|
|
|
|
rm -fr $(WORKDIR_FOR_BUILD)
|
2012-12-23 12:27:28 -06:00
|
|
|
endif
|
|
|
|
|
|
|
|
include $(SRCDIR)/compilerplugins/Makefile.mk
|
|
|
|
|
|
|
|
#
|
|
|
|
# Distclean
|
|
|
|
#
|
|
|
|
distclean : clean compilerplugins-clean
|
|
|
|
rm -fr \
|
|
|
|
$(BUILDDIR)/Makefile \
|
|
|
|
$(BUILDDIR)/aclocal.m4 \
|
|
|
|
$(BUILDDIR)/autom4te.cache \
|
|
|
|
$(BUILDDIR)/config.log \
|
|
|
|
$(BUILDDIR)/config.status \
|
|
|
|
$(BUILDDIR)/config_build.mk \
|
|
|
|
$(BUILDDIR)/config_host.mk \
|
|
|
|
$(BUILDDIR)/config_host.mk.stamp \
|
2013-02-04 01:39:08 -06:00
|
|
|
$(BUILDDIR)/config_host/*.h \
|
2013-02-28 02:51:12 -06:00
|
|
|
$(BUILDDIR)/config_host/*.mk \
|
2012-12-23 12:27:28 -06:00
|
|
|
$(BUILDDIR)/configure \
|
2013-01-14 04:05:50 -06:00
|
|
|
$(BUILDDIR)/instsetoo_native/util/openoffice.lst \
|
2013-03-01 06:50:16 -06:00
|
|
|
$(BUILDDIR)/lo.xcent
|
2012-12-23 12:27:28 -06:00
|
|
|
find $(SOLARENV)/gdb -name "*.pyc" -exec rm {} \;
|
|
|
|
|
|
|
|
#
|
|
|
|
# custom command
|
|
|
|
#
|
|
|
|
cmd:
|
|
|
|
echo "custom cmd" && ( $(cmd) )
|
|
|
|
|
|
|
|
#
|
|
|
|
# Fetch
|
|
|
|
#
|
|
|
|
ifneq ($(DO_FETCH_TARBALLS),NO)
|
|
|
|
include $(SRCDIR)/Makefile.fetch
|
|
|
|
fetch: download
|
|
|
|
fetch: get-submodules
|
|
|
|
|
|
|
|
ifneq (,$(wildcard $(SRCDIR)/.git))
|
|
|
|
get-submodules:
|
|
|
|
ifneq ($(foreach i,$(GIT_NEEDED_SUBMODULES),$(i)/.git),$(wildcard $(foreach i,$(GIT_NEEDED_SUBMODULES),$(i)/.git)))
|
|
|
|
cd $(SRCDIR) && ./g -f clone
|
|
|
|
endif
|
2013-02-13 16:19:59 -06:00
|
|
|
@cd $(SRCDIR) && ./g -z # make sure the git hooks are in place enen if no submodules are needed
|
2012-12-23 12:27:28 -06:00
|
|
|
|
|
|
|
else # these sources are from a tarball, so get the other source tarballs
|
|
|
|
gb_LO_VER := $(shell . $(SRCDIR)/sources.ver && echo $$lo_sources_ver)
|
|
|
|
$(if $(gb_LO_VER),,$(error Error while retrieving $$lo_sources_ver from $(SRCDIR)/sources.ver))
|
|
|
|
|
|
|
|
get-submodules: | download
|
|
|
|
ifneq ($(foreach i,$(subst helpcontent2,help,$(GIT_NEEDED_SUBMODULES)),$(SRCDIR)/src/libreoffice-$(i)-$(gb_LO_VER)),$(wildcard $(foreach i,$(subst helpcontent2,help,$(GIT_NEEDED_SUBMODULES)),$(SRCDIR)/src/libreoffice-$(i)-$(gb_LO_VER))))
|
|
|
|
$(foreach i,$(subst helpcontent2,help,$(GIT_NEEDED_SUBMODULES)),\
|
|
|
|
$(call fetch_Download_item,http://download.documentfoundation.org/libreoffice/src/$(shell echo $(gb_LO_VER) | sed -e "s/\([0-9]*\.[0-9]*\.[0-9]*\).*/\1/"),libreoffice-$(i)-$(gb_LO_VER).tar.xz,no-check))
|
|
|
|
$(SRCDIR)/bin/unpack-sources $(SRCDIR) $(foreach i,$(subst helpcontent2,help,$(GIT_NEEDED_SUBMODULES)),\
|
|
|
|
$(TARFILE_LOCATION)/libreoffice-$(i)-$(gb_LO_VER).tar.xz)
|
|
|
|
endif
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
else
|
|
|
|
fetch:
|
|
|
|
@echo "Automatic fetching of external tarballs is disabled."
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
#
|
|
|
|
# Bootstap
|
|
|
|
#
|
2013-02-25 04:56:21 -06:00
|
|
|
bootstrap: compilerplugins
|
2012-12-23 12:27:28 -06:00
|
|
|
|
|
|
|
#
|
|
|
|
# Build
|
|
|
|
#
|
2013-02-21 19:40:59 -06:00
|
|
|
build: bootstrap fetch $(if $(filter $(INPATH),$(INPATH_FOR_BUILD)),,cross-toolset)
|
2013-03-05 10:03:04 -06:00
|
|
|
$(GNUMAKE) -j $(PARALLELISM) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild
|
2013-09-10 04:37:16 -05:00
|
|
|
ifneq ($(filter-out WNT MACOSX IOS ANDROID,$(OS)),)
|
|
|
|
install-gdb-printers -a $(INSTDIR)
|
|
|
|
endif
|
2013-04-19 01:27:44 -05:00
|
|
|
ifeq ($(OS),IOS)
|
|
|
|
$(GNUMAKE) -j $(PARALLELISM) $(GMAKE_OPTIONS) ios
|
|
|
|
endif
|
2012-12-23 12:27:28 -06:00
|
|
|
|
2013-03-05 10:03:04 -06:00
|
|
|
build-nocheck: bootstrap fetch $(if $(filter $(INPATH),$(INPATH_FOR_BUILD)),,cross-toolset)
|
|
|
|
$(GNUMAKE) -j $(PARALLELISM) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild build
|
2012-12-23 12:27:28 -06:00
|
|
|
|
|
|
|
cross-toolset: bootstrap fetch
|
2013-03-08 07:14:46 -06:00
|
|
|
$(GNUMAKE) gb_Side=build -j $(PARALLELISM) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild build-tools
|
2012-12-23 12:27:28 -06:00
|
|
|
|
2013-08-16 03:06:51 -05:00
|
|
|
ifneq ($(OS),MACOSX)
|
|
|
|
|
2012-12-23 12:27:28 -06:00
|
|
|
#
|
|
|
|
# Install
|
|
|
|
#
|
|
|
|
|
|
|
|
install:
|
|
|
|
echo "Installing in $(INSTALLDIR)..." && \
|
|
|
|
ooinstall "$(INSTALLDIR)" && \
|
|
|
|
echo "" && \
|
|
|
|
echo "Installation finished, you can now execute:" && \
|
|
|
|
echo "$(INSTALLDIR)/program/soffice"
|
|
|
|
|
|
|
|
install-strip:
|
|
|
|
echo "Installing and stripping binaries in $(INSTALLDIR)..." && \
|
|
|
|
ooinstall --strip "$(INSTALLDIR)" && \
|
|
|
|
echo "" && \
|
|
|
|
echo "Installation finished, you can now execute:" && \
|
|
|
|
echo "$(INSTALLDIR)/program/soffice"
|
|
|
|
|
2013-08-16 03:06:51 -05:00
|
|
|
endif # !MACOSX
|
|
|
|
|
2013-10-01 08:08:15 -05:00
|
|
|
dev-install:
|
|
|
|
@echo
|
|
|
|
@echo "dev-install is obsolete! Just build with \"make check\" and run"
|
|
|
|
ifeq ($(OS),MACOSX)
|
|
|
|
@echo " open instdir/*/$(PRODUCTNAME).app"
|
|
|
|
@echo
|
|
|
|
@echo "To debug: gdb instdir/*/$(PRODUCTNAME).app/Contents/MacOS/soffice"
|
|
|
|
else
|
|
|
|
@echo " instdir/*/program/soffice"
|
|
|
|
endif
|
|
|
|
@echo
|
|
|
|
@echo "(only if you have good reason to test an actual installation: make test-install)"
|
|
|
|
@echo
|
|
|
|
@false
|
|
|
|
|
|
|
|
test-install: build
|
2013-10-01 08:30:08 -05:00
|
|
|
@rm -rf $(TESTINSTALLDIR)
|
|
|
|
@mkdir $(TESTINSTALLDIR)
|
2012-12-23 12:27:28 -06:00
|
|
|
ifeq ($(OS_FOR_BUILD),WNT)
|
2013-10-01 08:30:08 -05:00
|
|
|
cd $(SRCDIR)/instsetoo_native && $(GNUMAKE) LIBO_TEST_INSTALL=TRUE $(GMAKE_OPTIONS)
|
2012-12-23 12:27:28 -06:00
|
|
|
else
|
2013-10-01 08:30:08 -05:00
|
|
|
@ooinstall $(TESTINSTALLDIR)/opt
|
2013-02-01 06:48:15 -06:00
|
|
|
ifneq ($(MACOSX_CODESIGNING_IDENTITY),)
|
2013-10-01 08:30:08 -05:00
|
|
|
@macosx-codesign-app-bundle $(TESTINSTALLDIR)/opt/LibreOffice.app
|
2013-01-31 15:22:35 -06:00
|
|
|
endif
|
2013-08-10 05:45:14 -05:00
|
|
|
ifneq ($(OS),MACOSX)
|
2012-12-23 12:27:28 -06:00
|
|
|
@install-gdb-printers -L
|
2013-08-10 05:45:14 -05:00
|
|
|
endif
|
2012-12-23 12:27:28 -06:00
|
|
|
endif
|
2013-02-21 04:21:12 -06:00
|
|
|
@echo
|
|
|
|
@echo "If you want to edit the .ui files with glade first execute:"
|
|
|
|
@echo
|
|
|
|
@echo "export GLADE_CATALOG_SEARCH_PATH=$(SRCDIR)/install/share/glade"
|
2013-02-19 02:38:12 -06:00
|
|
|
ifeq ($(OS),LINUX)
|
2013-02-19 01:05:25 -06:00
|
|
|
@echo
|
2013-10-01 08:08:15 -05:00
|
|
|
@echo "Test installation finished, you can now execute:"
|
2013-02-19 01:13:14 -06:00
|
|
|
@echo
|
2013-10-01 08:30:08 -05:00
|
|
|
@echo "$(TESTINSTALLDIR)/program/soffice"
|
2013-02-19 02:38:12 -06:00
|
|
|
else ifeq ($(OS),MACOSX)
|
|
|
|
@echo
|
|
|
|
@echo "Developer installation finished, you can now run:"
|
|
|
|
@echo
|
2013-10-01 08:30:08 -05:00
|
|
|
@echo " open $(TESTINSTALLDIR)/LibreOffice.app"
|
2013-02-19 02:38:12 -06:00
|
|
|
@echo
|
2013-10-01 08:30:08 -05:00
|
|
|
@echo "To debug: gdb $(TESTINSTALLDIR)/LibreOffice.app/Contents/MacOS/soffice"
|
2013-02-19 02:38:12 -06:00
|
|
|
endif
|
2012-12-23 12:27:28 -06:00
|
|
|
|
|
|
|
install-tb:
|
2013-10-01 08:30:08 -05:00
|
|
|
@rm -rf $(TESTINSTALLDIR)
|
|
|
|
@mkdir $(TESTINSTALLDIR)
|
2012-12-23 12:27:28 -06:00
|
|
|
ifeq ($(OS_FOR_BUILD),WNT)
|
2013-10-01 08:30:08 -05:00
|
|
|
cd $(SRCDIR)/instsetoo_native && $(GNUMAKE) LIBO_TEST_INSTALL=TRUE $(GMAKE_OPTIONS)
|
2012-12-23 12:27:28 -06:00
|
|
|
else
|
2013-10-01 08:30:08 -05:00
|
|
|
@ooinstall $(TESTINSTALLDIR)/opt
|
2012-12-23 12:27:28 -06:00
|
|
|
@install-gdb-printers
|
|
|
|
endif
|
2013-10-01 08:30:08 -05:00
|
|
|
@rm -f $(BUILDDIR)/install && ln -s $(TESTINSTALLDIR)/opt/ $(BUILDDIR)/install
|
2012-12-23 12:27:28 -06:00
|
|
|
|
|
|
|
distro-pack-install: install
|
|
|
|
$(SRCDIR)/bin/distro-install-clean-up
|
|
|
|
$(SRCDIR)/bin/distro-install-desktop-integration
|
|
|
|
$(SRCDIR)/bin/distro-install-sdk
|
|
|
|
$(SRCDIR)/bin/distro-install-file-lists
|
|
|
|
|
|
|
|
id:
|
|
|
|
@create-ids
|
|
|
|
|
|
|
|
tags:
|
|
|
|
@create-tags
|
|
|
|
|
|
|
|
docs:
|
|
|
|
@mkdocs.sh $(SRCDIR)/docs $(SOLARENV)/inc/doxygen.cfg
|
|
|
|
|
|
|
|
findunusedcode:
|
|
|
|
@which callcatcher > /dev/null 2>&1 || \
|
|
|
|
(echo "callcatcher not installed" && false)
|
2013-06-19 10:46:21 -05:00
|
|
|
@mkdir -p $(SRCDIR)/callcatcher/config_host
|
|
|
|
@cp config_host/* callcatcher/config_host
|
|
|
|
@cp config_host.mk* callcatcher
|
|
|
|
@sed -e s,$$INPATH,callcatcher,g config_host.mk | sed -e s,"export OOO_JUNIT_JAR=.*","export OOO_JUNIT_JAR=",g > $(SRCDIR)/callcatcher/config_host.mk
|
2013-06-19 14:05:18 -05:00
|
|
|
@sed -i -e s,g++,"callcatcher g++",g $(SRCDIR)/callcatcher/config_host.mk
|
|
|
|
@sed -i -e s,gcc,"callcatcher gcc",g $(SRCDIR)/callcatcher/config_host.mk
|
2013-06-19 10:46:21 -05:00
|
|
|
@echo unexport ARCH_FLAGS >> $(SRCDIR)/callcatcher/config_host.mk
|
|
|
|
@echo unexport CFLAGS >> $(SRCDIR)/callcatcher/config_host.mk
|
|
|
|
@echo unexport CXXFLAGS >> $(SRCDIR)/callcatcher/config_host.mk
|
2013-02-28 17:28:49 -06:00
|
|
|
$(GNUMAKE) -f $(SOLARENV)/bin/callcatcher.Makefile findunusedcode
|
2012-12-23 12:27:28 -06:00
|
|
|
@grep ::.*\( unusedcode.all \
|
|
|
|
| grep -v ^Atom \
|
|
|
|
| grep -v ^atom:: \
|
|
|
|
| grep -v ^boost:: \
|
|
|
|
| grep -v ^CIcc \
|
|
|
|
| grep -v ^CLuceneError:: \
|
|
|
|
| grep -v ^cppu:: \
|
2013-03-05 04:51:35 -06:00
|
|
|
| grep -v ^CppUnit:: \
|
2012-12-23 12:27:28 -06:00
|
|
|
| grep -v ^Dde \
|
|
|
|
| grep -v ^graphite2:: \
|
|
|
|
| grep -v ^jvmaccess:: \
|
|
|
|
| grep -v ^libcdr:: \
|
|
|
|
| grep -v ^libcmis:: \
|
|
|
|
| grep -v ^libmspub:: \
|
|
|
|
| grep -v ^libvisio:: \
|
|
|
|
| grep -v ^libwpg:: \
|
|
|
|
| grep -v ^libwps_tools_win:: \
|
|
|
|
| grep -v ^lucene:: \
|
|
|
|
| grep -v ^Matrix3d:: \
|
|
|
|
| grep -v ^RelatedMultipart:: \
|
|
|
|
| grep -v ^salhelper:: \
|
|
|
|
| grep -v ^VSDInternalStream:: \
|
|
|
|
| grep -v ^WP1 \
|
|
|
|
| grep -v ^WP3 \
|
|
|
|
| grep -v ^WP42 \
|
|
|
|
| grep -v ^WP6 \
|
|
|
|
| grep -v ^WPG \
|
|
|
|
| grep -v ^WPS \
|
|
|
|
| grep -v WPX \
|
|
|
|
| grep -v ^WSObject \
|
|
|
|
> unusedcode.easy
|
|
|
|
|
2013-06-19 07:50:02 -05:00
|
|
|
check: build subsequentcheck
|
2012-12-23 12:27:28 -06:00
|
|
|
|
2013-03-04 12:01:19 -06:00
|
|
|
dump-deps:
|
2013-03-05 12:31:18 -06:00
|
|
|
@$(SRCDIR)/bin/module-deps.pl $(GNUMAKE) $(SRCDIR)/Makefile.gbuild
|
2013-03-04 12:01:19 -06:00
|
|
|
|
2013-03-09 09:08:47 -06:00
|
|
|
dump-deps-png:
|
|
|
|
@$(SRCDIR)/bin/module-deps.pl $(GNUMAKE) $(SRCDIR)/Makefile.gbuild | dot -Tpng -o lo.png
|
|
|
|
|
2013-06-19 07:50:02 -05:00
|
|
|
subsequentcheck :| $(if $(filter-out subsequentcheck,$(MAKECMDGOALS)),build)
|
2013-03-04 08:32:05 -06:00
|
|
|
$(GNUMAKE) -j $(CHECK_PARALLELISM) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild $@
|
2012-12-23 12:27:28 -06:00
|
|
|
|
2013-02-27 11:40:36 -06:00
|
|
|
.PHONY : debugrun help slowcheck translations unitcheck
|
|
|
|
debugrun help slowcheck translations unitcheck :
|
2013-03-04 08:32:05 -06:00
|
|
|
$(GNUMAKE) -j $(PARALLELISM) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild $@
|
2012-12-23 12:27:28 -06:00
|
|
|
|
|
|
|
endif # MAKE_RESTARTS
|
|
|
|
|
|
|
|
# vim: set noet sw=4 ts=4:
|