make install and dev-install build-depend on all
[LibreOffice.git] / Makefile.in
blob65f0ee25f27eeada28f9ed9bc8c35ef689b38333
1 # @configure_input@
3 SHELL=/usr/bin/env bash
5 ifeq (@CROSS_COMPILING@,YES)
6 CROSS_TOOLSET_RULE:=cross-build-toolset
7 else
8 CROSS_TOOLSET_RULE:=
9 endif
11 all: Makefile dmake/dmake@EXEEXT_FOR_BUILD@ src.downloaded $(CROSS_TOOLSET_RULE)
12 @. ./Env.Host.sh && \
13 cd instsetoo_native && \
14 build.pl -P@BUILD_NCPUS@ --all -- -P@BUILD_MAX_JOBS@
16 cross-build-toolset:
17 @. ./Env.Build.sh && \
18 cd cross_toolset && \
19 build.pl -P@BUILD_NCPUS@ --all -- -P@BUILD_MAX_JOBS@
21 install:|all
22 @. ./Env.Host.sh && \
23 echo "Installing in @PREFIXDIR@..." && \
24 ooinstall "@PREFIXDIR@" && \
25 echo "" && \
26 echo "Installation finished, you can now execute:" && \
27 echo "@PREFIXDIR@/program/soffice" && \
28 install-gdb-printers -a "@PREFIXDIR@"
30 distro-pack-install: install
31 ./bin/distro-install-clean-up
32 ./bin/distro-install-desktop-integration
33 ./bin/distro-install-sdk
34 ./bin/distro-install-file-lists
36 dev-install:|all
37 @. ./Env.Host.sh && \
38 cd smoketestoo_native && \
39 export SAL_USE_VCLPLUGIN="svp" && \
40 build.pl -P@BUILD_NCPUS@ --all:instsetoo_native -- -P@BUILD_MAX_JOBS@ && \
41 cd @abs_builddir@ && ln -s $$SOLARVER/$$INPATH/installation/opt/ install && \
42 echo "" && \
43 $$SOLARENV/bin/linkoo $$SRC_ROOT/install $$SRC_ROOT && \
44 install-gdb-printers -a "$$SOLARVER/$$INPATH/installation/opt" -L && \
45 echo && echo "Developer installation finished, you can now execute:" && echo && \
46 if test `uname -s` = Darwin; then \
47 echo open install/LibreOffice.app; \
48 else \
49 echo "cd @abs_builddir@/install/program" && \
50 echo ". ./ooenv" && \
51 echo "./soffice.bin"; \
54 distclean:
55 -rm config.cache
56 -rm config.log
57 ifeq (@BUILD_DMAKE@,YES)
58 -$(GNUMAKE) -C dmake distclean
59 endif
61 clean:
62 . ./Env.Host.sh && \
63 rm -rf */$$INPATH && \
64 rm -rf solver/$$INPATH && \
65 rm -rf workdir && \
66 rm -rf install
67 ifeq (@BUILD_DMAKE@,YES)
68 . ./Env.Host.sh && \
69 (if [ -f dmake/Makefile ] ; then $$GNUMAKE -C dmake clean; fi) && \
70 rm -f solenv/*/bin/dmake*
71 endif
72 ifeq (@CROSS_COMPILING@,YES)
73 . ./Env.Host.sh && \
74 rm -rf */$$INPATH_FOR_BUILD && \
75 rm -rf solver/$$INPATH_FOR_BUILD
76 endif
78 dmake/dmake@EXEEXT_FOR_BUILD@:
79 ./bootstrap
81 src.downloaded: ooo.lst download
82 ifeq (@DO_FETCH_TARBALLS@,YES)
83 @. ./Env.Host.sh && \
84 $$SRC_ROOT/download $$SRC_ROOT/ooo.lst && touch $@
85 else
86 @echo "Automatic fetching of external tarballs is disabled."
87 endif
89 fetch: src.downloaded
91 Makefile: autogen.lastrun configure.in ooo.lst.in set_soenv.in Makefile.in
92 ./autogen.sh
94 check: Makefile dmake/dmake@EXEEXT_FOR_BUILD@ fetch
95 @. ./Env.Host.sh && \
96 cd smoketestoo_native && \
97 export SAL_USE_VCLPLUGIN="svp" && \
98 build.pl -P@BUILD_NCPUS@ --all -- -P@BUILD_MAX_JOBS@
99 @. ./Env.Host.sh && $$SOLARENV/bin/subsequenttests
102 @. ./Env.Host.sh && \
103 create-ids
105 tags:
106 @. ./Env.Host.sh && \
107 create-tags
109 docs:
110 @. ./Env.Host.sh && \
111 mkdocs.sh $$SRC_ROOT/docs $$SOLARENV/inc/doxygen.cfg
113 findunusedcode:
114 # experimental callcatcher target
115 # http://www.skynet.ie/~caolan/Packages/callcatcher.html
116 @which callcatcher > /dev/null 2>&1 || \
117 (echo "callcatcher not installed" && false)
118 @. ./Env.Host.sh && \
119 source <(sed -e s,$$INPATH,callcatcher,g ./Env.Host.sh) && \
120 . ./solenv/bin/callcatchEnv.Set.sh && \
121 cd instsetoo_native && \
122 build.pl -P@BUILD_NCPUS@ --all -- -P@BUILD_MAX_JOBS@
123 @. ./Env.Host.sh && \
124 source <(sed -e s,$$INPATH,callcatcher,g ./Env.Host.sh) && \
125 callanalyse \
126 $$WORKDIR/LinkTarget/*/* \
127 */$$OUTPATH/bin/* \
128 */$$OUTPATH/lib/* > unusedcode.all
129 #because non-c++ symbols could be dlsymed lets make a list of class level
130 #unused methods which don't require much effort to determine if they need
131 #to be just removed, or put behind appropiate platform or debug level ifdefs
132 @grep ::.*\( unusedcode.all | grep -v cppu::bootstrap > unusedcode.easy