Kaydet (Commit) 581089e9 authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

adjust toplevel makefile

üst 980fdaf4
......@@ -8,17 +8,45 @@ else
CROSS_TOOLSET_RULE:=
endif
.PHONY : build dev-install check allcheck unitcheck subsequentcheck all cross-build-toolset install distro-pack-install clean distclean findunusedcode
build: Makefile dmake/dmake@EXEEXT_FOR_BUILD@ src.downloaded $(CROSS_TOOLSET_RULE)
@. ./Env.Host.sh && \
cd instsetoo_native && \
build.pl -P@BUILD_NCPUS@ --all -- -P@BUILD_MAX_JOBS@
gb_MAKETARGET=build build.pl -P@BUILD_NCPUS@ --all -- -P@BUILD_MAX_JOBS@
dev-install: build
@. ./Env.Host.sh && \
cd smoketestoo_native && \
build.pl -P@BUILD_NCPUS@ --all:instsetoo_native -- -P@BUILD_MAX_JOBS@ && \
cd @abs_builddir@ && ln -s $$SOLARVER/$$INPATH/installation/opt/ install && \
echo "" && \
$$SOLARENV/bin/linkoo $$SRC_ROOT/install $$SRC_ROOT && \
install-gdb-printers -a "$$SOLARVER/$$INPATH/installation/opt" -L && \
echo && echo "Developer installation finished, you can now execute:" && echo && \
if test `uname -s` = Darwin; then \
echo open install/LibreOffice.app; \
else \
echo "cd @abs_builddir@/install/program" && \
echo ". ./ooenv" && \
echo "./soffice.bin"; \
fi
check : allcheck
%check:
@. ./Env.Host.sh && $(GNUMAKE) -f "$$SRC_ROOT"/GNUmakefile.mk -r \
$(if @VERBOSE@,,-s) --jobs="$(if \
$(CHECK_PARALLELISM),$(CHECK_PARALLELISM),@GMAKE_PARALLELISM@)" \
$(patsubst allcheck,check,$@)
all: build unitcheck
cross-build-toolset:
@. ./Env.Build.sh && \
cd cross_toolset && \
build.pl -P@BUILD_NCPUS@ --all -- -P@BUILD_MAX_JOBS@
install:|build
install: build
@. ./Env.Host.sh && \
echo "Installing in @PREFIXDIR@..." && \
ooinstall "@PREFIXDIR@" && \
......@@ -33,23 +61,6 @@ distro-pack-install: install
./bin/distro-install-sdk
./bin/distro-install-file-lists
dev-install:|build
@. ./Env.Host.sh && \
cd smoketestoo_native && \
build.pl -P@BUILD_NCPUS@ --all:instsetoo_native -- -P@BUILD_MAX_JOBS@ && \
cd @abs_builddir@ && ln -s $$SOLARVER/$$INPATH/installation/opt/ install && \
echo "" && \
$$SOLARENV/bin/linkoo $$SRC_ROOT/install $$SRC_ROOT && \
install-gdb-printers -a "$$SOLARVER/$$INPATH/installation/opt" -L && \
echo && echo "Developer installation finished, you can now execute:" && echo && \
if test `uname -s` = Darwin; then \
echo open install/LibreOffice.app; \
else \
echo "cd @abs_builddir@/install/program" && \
echo ". ./ooenv" && \
echo "./soffice.bin"; \
fi
distclean:
-rm config.cache
-rm config.log
......@@ -90,15 +101,6 @@ fetch: src.downloaded
Makefile: autogen.lastrun configure.in ooo.lst.in set_soenv.in Makefile.in
./autogen.sh
check: Makefile dmake/dmake@EXEEXT_FOR_BUILD@ fetch | dev-install
@. ./Env.Host.sh && \
cd smoketestoo_native && \
build.pl -P@BUILD_NCPUS@ --all -- -P@BUILD_MAX_JOBS@
@. ./Env.Host.sh && $(MAKE) -f "$$SRC_ROOT"/GNUmakefile.mk -r \
$(if @VERBOSE@,,-s) --jobs="$(if \
$(CHECK_PARALLELISM),$(CHECK_PARALLELISM),@GMAKE_PARALLELISM@)" \
subsequentcheck
id:
@. ./Env.Host.sh && \
create-ids
......@@ -131,3 +133,7 @@ findunusedcode:
#unused methods which don't require much effort to determine if they need
#to be just removed, or put behind appropiate platform or debug level ifdefs
@grep ::.*\( unusedcode.all | grep -v ^cppu:: > unusedcode.easy
#as long as we are not completely gbuildified we need to explicitly depend on the build/install
unitcheck: build
subsequentcheck: dev-install
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