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
|
|
|
#
|
|
|
|
# Copyright 2012 LibreOffice contributors.
|
|
|
|
#
|
|
|
|
# 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-02-27 11:40:36 -06:00
|
|
|
.PHONY : all bootstrap build check clean clean-build clean-host dev-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@
|
2012-01-24 15:48:30 -06:00
|
|
|
|
2012-12-23 13:36:29 -06:00
|
|
|
# Next 'if' means:
|
|
|
|
# If you want to make something more than help clean distclean,
|
|
|
|
# and make has not yet restarted itself..
|
|
|
|
# ..run autogen.sh if needed and force make to restart itself.
|
2013-01-04 14:09:17 -06:00
|
|
|
ifeq (,$(MAKE_RESTARTS)$(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 \
|
2012-12-11 08:39:49 -06:00
|
|
|
$(BUILDDIR)/autogen.lastrun
|
2012-12-11 07:49:24 -06:00
|
|
|
$(SRCDIR)/autogen.sh
|
2012-01-26 14:26:49 -06:00
|
|
|
|
2013-03-04 01:49:23 -06: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.lastrun does not yet
|
|
|
|
# exist
|
|
|
|
$(SRCDIR)/config_host.mk.in \
|
|
|
|
$(SRCDIR)/Makefile.in \
|
|
|
|
$(SRCDIR)/instsetoo_native/util/openoffice.lst.in \
|
|
|
|
$(SRCDIR)/configure.ac \
|
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 \
|
|
|
|
AllLangResTarget \
|
|
|
|
AllLangZip \
|
|
|
|
AutoInstallLibs \
|
|
|
|
CliLibrary \
|
|
|
|
CliNativeLibrary \
|
|
|
|
CliUnoApiTarget \
|
|
|
|
Configuration \
|
|
|
|
CppunitTest \
|
|
|
|
CustomTarget \
|
|
|
|
Dictionary \
|
|
|
|
Executable \
|
|
|
|
Extension \
|
|
|
|
ExternalPackage \
|
|
|
|
ExternalProject \
|
|
|
|
InstallModule \
|
|
|
|
InstallScript \
|
|
|
|
InternalUnoApi \
|
|
|
|
Jar \
|
|
|
|
JunitTest \
|
|
|
|
Library \
|
|
|
|
Module \
|
|
|
|
Package \
|
|
|
|
Pagein \
|
|
|
|
Pyuno \
|
|
|
|
Rdb \
|
|
|
|
StaticLibrary \
|
|
|
|
UI \
|
|
|
|
UnoApi \
|
|
|
|
UnoApiMerge \
|
|
|
|
UnpackedTarball \
|
|
|
|
WinResTarget \
|
|
|
|
Zip
|
|
|
|
# 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:
|
|
|
|
rm -fr $(DEVINSTALLDIR)
|
|
|
|
rm -fr $(OUTDIR)
|
|
|
|
rm -fr $(WORKDIR)
|
|
|
|
rm -fr install
|
|
|
|
|
|
|
|
clean-build:
|
|
|
|
ifeq ($(CROSS_COMPILING),YES)
|
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
|
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
|
|
|
|
|
|
|
#
|
|
|
|
# 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-02-02 15:25:56 -06:00
|
|
|
ifeq ($(ENABLE_MACOSX_SANDBOX),YES)
|
|
|
|
entitlements:=--entitlements $(SRC_ROOT)/lo.xcent
|
|
|
|
endif
|
|
|
|
|
2013-02-03 03:52:13 -06:00
|
|
|
dev-install: build
|
2012-12-23 12:27:28 -06:00
|
|
|
@rm -rf $(DEVINSTALLDIR)
|
|
|
|
@mkdir $(DEVINSTALLDIR)
|
|
|
|
ifeq ($(OS_FOR_BUILD),WNT)
|
2013-02-21 19:40:59 -06:00
|
|
|
cd $(SRCDIR)/instsetoo_native && $(GNUMAKE) LIBO_DEV_INSTALL=TRUE $(GMAKE_OPTIONS)
|
2012-12-23 12:27:28 -06:00
|
|
|
else
|
|
|
|
ifeq ($(DISABLE_LINKOO),TRUE)
|
|
|
|
@ooinstall $(DEVINSTALLDIR)/opt
|
2013-02-01 06:48:15 -06:00
|
|
|
ifneq ($(MACOSX_CODESIGNING_IDENTITY),)
|
|
|
|
#
|
|
|
|
# Sign dylibs
|
2013-02-02 02:07:10 -06:00
|
|
|
#
|
|
|
|
# Executables get signed right after linking, see
|
|
|
|
# solenv/gbuild/platform/macosx.mk. But many of our dylibs are built
|
|
|
|
# by ad-hoc or 3rd-party mechanisms, so we can't easily sign them
|
|
|
|
# right after linking. So do it here.
|
|
|
|
#
|
|
|
|
# The dylibs in the Python framework are called *.so. Go figure
|
|
|
|
#
|
|
|
|
find $(DEVINSTALLDIR)/opt/LibreOffice.app \( -name '*.dylib' -or -name '*.dylib.*' -or -name '*.so' \) ! -type l | \
|
2013-02-01 06:48:15 -06:00
|
|
|
while read dylib; do \
|
|
|
|
id=`basename "$$dylib"`; \
|
|
|
|
case $$id in \
|
2013-02-02 02:07:10 -06:00
|
|
|
*.dylib|*.so) \
|
2013-02-01 06:48:15 -06:00
|
|
|
;; \
|
2013-02-02 02:07:10 -06:00
|
|
|
*.dylib.*) \
|
2013-02-01 06:48:15 -06:00
|
|
|
id=`echo $$id | sed -e 's/dylib.*/dylib/'`; \
|
|
|
|
;; \
|
|
|
|
esac; \
|
|
|
|
codesign --verbose --identifier=$(MACOSX_BUNDLE_IDENTIFIER).$$id --sign $(MACOSX_CODESIGNING_IDENTITY) "$$dylib"; \
|
|
|
|
done
|
|
|
|
#
|
|
|
|
# Sign frameworks.
|
|
|
|
#
|
|
|
|
# Yeah, we don't bundle any other framework than our Python one, and
|
|
|
|
# it has just one version, so this generic search is mostly for
|
|
|
|
# completeness.
|
2013-02-02 15:25:56 -06:00
|
|
|
#
|
2013-02-01 06:48:15 -06:00
|
|
|
for framework in `find $(DEVINSTALLDIR)/opt/LibreOffice.app -name '*.framework' -type d`; do \
|
|
|
|
for version in $$framework/Versions/*; do \
|
|
|
|
test -d $$version && codesign --force --verbose --prefix=$(MACOSX_BUNDLE_IDENTIFIER). --sign $(MACOSX_CODESIGNING_IDENTITY) $$version; \
|
|
|
|
done; \
|
|
|
|
done
|
|
|
|
#
|
|
|
|
# Sign the app bundle as a whole (will sign the soffice binary)
|
2013-02-02 02:36:28 -06:00
|
|
|
#
|
2013-02-02 02:39:32 -06:00
|
|
|
# The soffice binary will have been signed after linking but it needs
|
2013-02-02 02:36:28 -06:00
|
|
|
# to be re-signed as it has been renamed, or modified, or something
|
|
|
|
# after linking.
|
2013-02-02 15:25:56 -06:00
|
|
|
#
|
|
|
|
# At this stage we also attach the entitlements in the sandboxing case
|
|
|
|
#
|
|
|
|
codesign --force --verbose --sign $(MACOSX_CODESIGNING_IDENTITY) $(entitlements) $(DEVINSTALLDIR)/opt/LibreOffice.app
|
2013-02-01 06:48:15 -06:00
|
|
|
#
|
2013-01-31 15:22:35 -06:00
|
|
|
endif
|
2012-12-23 12:27:28 -06:00
|
|
|
@install-gdb-printers -L
|
|
|
|
else
|
|
|
|
@ooinstall -l $(DEVINSTALLDIR)/opt
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
@rm -f $(SRCDIR)/install && ln -s $(DEVINSTALLDIR)/opt/ $(SRCDIR)/install
|
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
|
|
|
|
@echo "Developer installation finished, you can now execute:"
|
2013-02-19 01:13:14 -06:00
|
|
|
@echo
|
2013-02-19 08:22:03 -06:00
|
|
|
@echo "$(SRCDIR)/install/program/soffice"
|
2013-02-19 02:38:12 -06:00
|
|
|
else ifeq ($(OS),MACOSX)
|
|
|
|
@echo
|
|
|
|
@echo "Developer installation finished, you can now run:"
|
|
|
|
@echo
|
|
|
|
@echo " open $(SRCDIR)/install/LibreOffice.app"
|
|
|
|
@echo
|
|
|
|
@echo "To debug: gdb install/LibreOffice.app/Contents/MacOS/soffice"
|
|
|
|
endif
|
2012-12-23 12:27:28 -06:00
|
|
|
|
2013-03-05 10:03:04 -06:00
|
|
|
dev-install-nocheck: build-nocheck
|
|
|
|
$(MAKE) dev-install -o build
|
2012-12-23 12:27:28 -06:00
|
|
|
|
|
|
|
dev-update:
|
|
|
|
ifeq ($(DISABLE_LINKOO),TRUE)
|
|
|
|
@linkoo --copy $(DEVINSTALLDIR)/opt $(SRCDIR)
|
|
|
|
else
|
|
|
|
@linkoo $(DEVINSTALLDIR)/opt $(SRCDIR)
|
|
|
|
endif
|
|
|
|
|
|
|
|
install-tb:
|
|
|
|
@rm -rf $(DEVINSTALLDIR)
|
|
|
|
@mkdir $(DEVINSTALLDIR)
|
|
|
|
ifeq ($(OS_FOR_BUILD),WNT)
|
2013-02-21 19:40:59 -06:00
|
|
|
cd $(SRCDIR)/instsetoo_native && $(GNUMAKE) LIBO_DEV_INSTALL=TRUE $(GMAKE_OPTIONS)
|
2012-12-23 12:27:28 -06:00
|
|
|
else
|
|
|
|
@ooinstall $(DEVINSTALLDIR)/opt
|
|
|
|
@install-gdb-printers
|
|
|
|
endif
|
|
|
|
@rm -f $(SRCDIR)/install && ln -s $(DEVINSTALLDIR)/opt/ $(SRCDIR)/install
|
|
|
|
|
|
|
|
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)
|
|
|
|
@sed -e s,$$INPATH,callcatcher,g config_host.mk | sed -e s,"export OOO_JUNIT_JAR=.*","export OOO_JUNIT_JAR=",g > $(SRCDIR)/config_host_callcatcher.mk
|
|
|
|
@echo unexport ARCH_FLAGS >> $(SRCDIR)/config_host_callcatcher.mk
|
|
|
|
@echo unexport CFLAGS >> $(SRCDIR)/config_host_callcatcher.mk
|
|
|
|
@echo unexport CXXFLAGS >> $(SRCDIR)/config_host_callcatcher.mk
|
|
|
|
@mkdir -p $(SRCDIR)/solenv/callcatcher/bin && \
|
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
|
|
|
|
|
|
|
|
check: dev-install subsequentcheck
|
|
|
|
|
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
|
|
|
|
|
2012-12-23 12:27:28 -06:00
|
|
|
subsequentcheck :| $(if $(filter-out subsequentcheck,$(MAKECMDGOALS)),dev-install)
|
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:
|