summaryrefslogtreecommitdiff
path: root/Makefile.in
blob: 65f0ee25f27eeada28f9ed9bc8c35ef689b38333 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# @configure_input@

SHELL=/usr/bin/env bash

ifeq (@CROSS_COMPILING@,YES)
CROSS_TOOLSET_RULE:=cross-build-toolset
else
CROSS_TOOLSET_RULE:=
endif

all: 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@

cross-build-toolset:
	@. ./Env.Build.sh && \
	cd cross_toolset && \
	build.pl -P@BUILD_NCPUS@ --all -- -P@BUILD_MAX_JOBS@

install:|all
	@. ./Env.Host.sh && \
	echo "Installing in @PREFIXDIR@..." && \
	ooinstall "@PREFIXDIR@" && \
	echo "" && \
	echo "Installation finished, you can now execute:" && \
	echo "@PREFIXDIR@/program/soffice" && \
	install-gdb-printers -a "@PREFIXDIR@"

distro-pack-install: install
	./bin/distro-install-clean-up
	./bin/distro-install-desktop-integration
	./bin/distro-install-sdk
	./bin/distro-install-file-lists

dev-install:|all
	@. ./Env.Host.sh && \
	cd smoketestoo_native && \
		export SAL_USE_VCLPLUGIN="svp" && \
		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
ifeq (@BUILD_DMAKE@,YES)
	-$(GNUMAKE) -C dmake distclean
endif

clean:
	. ./Env.Host.sh && \
	rm -rf */$$INPATH && \
	rm -rf solver/$$INPATH && \
	rm -rf workdir && \
	rm -rf install
ifeq (@BUILD_DMAKE@,YES)
	. ./Env.Host.sh && \
	(if [ -f dmake/Makefile ] ; then $$GNUMAKE -C dmake clean; fi) && \
	rm -f solenv/*/bin/dmake*
endif
ifeq (@CROSS_COMPILING@,YES)
	. ./Env.Host.sh && \
	rm -rf */$$INPATH_FOR_BUILD && \
	rm -rf solver/$$INPATH_FOR_BUILD
endif

dmake/dmake@EXEEXT_FOR_BUILD@:
	./bootstrap

src.downloaded: ooo.lst download
ifeq (@DO_FETCH_TARBALLS@,YES)
	@. ./Env.Host.sh && \
	$$SRC_ROOT/download $$SRC_ROOT/ooo.lst && touch $@
else
	@echo "Automatic fetching of external tarballs is disabled."
endif

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
	@. ./Env.Host.sh && \
	cd smoketestoo_native && \
	export SAL_USE_VCLPLUGIN="svp" && \
        build.pl -P@BUILD_NCPUS@ --all -- -P@BUILD_MAX_JOBS@
	@. ./Env.Host.sh && $$SOLARENV/bin/subsequenttests

id:
	@. ./Env.Host.sh && \
		create-ids

tags:
	@. ./Env.Host.sh && \
		create-tags

docs:
	@. ./Env.Host.sh && \
		mkdocs.sh $$SRC_ROOT/docs $$SOLARENV/inc/doxygen.cfg

findunusedcode:
# experimental callcatcher target
# http://www.skynet.ie/~caolan/Packages/callcatcher.html
	@which callcatcher > /dev/null 2>&1 || \
	 (echo "callcatcher not installed" && false)
	@. ./Env.Host.sh && \
	   source <(sed -e s,$$INPATH,callcatcher,g ./Env.Host.sh) && \
	   . ./solenv/bin/callcatchEnv.Set.sh && \
	   cd instsetoo_native && \
	   build.pl -P@BUILD_NCPUS@ --all -- -P@BUILD_MAX_JOBS@
	@. ./Env.Host.sh && \
	   source <(sed -e s,$$INPATH,callcatcher,g ./Env.Host.sh) && \
	   callanalyse \
	       $$WORKDIR/LinkTarget/*/* \
	       */$$OUTPATH/bin/* \
	       */$$OUTPATH/lib/* > unusedcode.all
#because non-c++ symbols could be dlsymed lets make a list of class level
#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::bootstrap > unusedcode.easy