diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-09-16 18:48:08 +0200 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-09-16 18:56:34 +0200 |
commit | 581089e9f18ee5886e981b6c2ccb6a91ad7e5bed (patch) | |
tree | 9eb021bd02de9528cf1d40a613291fa938f7164a /Makefile.in | |
parent | 980fdaf40de49deee842d902ea00ef466da8a53c (diff) |
adjust toplevel makefile
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 62 |
1 files changed, 34 insertions, 28 deletions
diff --git a/Makefile.in b/Makefile.in index 93fba1e7b8ed..960f7d191255 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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 |