xref: /aoo41x/main/makefile.rc (revision cdf0e10c)
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org.  If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#*************************************************************************
27
28TARGET=OpenOffice.org
29MAKEFILERC=true
30
31#
32# build targets
33#
34
35build_all : build_instsetoo_native
36
37all .PHONY : build_all
38
39check_modules .PHONY :
40	@+echo Checking module list
41	@+perl $(SOLARENV)$/bin$/build.pl --checkmodules
42
43# Only build when all modules available
44build_instsetoo_native .SETDIR=instsetoo_native/prj : check_modules
45	@+perl $(SOLARENV)$/bin$/build.pl --all $(PROFULLSWITCH)
46
47depend .SETDIR=instsetoo_native/prj : check_modules
48	@+perl $(SOLARENV)$/bin$/build.pl --all $(PROFULLSWITCH) depend=t
49
50
51#
52# bootstrap target
53#
54
55bootstrap .PHONY :
56	@bootstrap
57
58
59distclean .PHONY: clean
60	-rm config.cache
61	-rm config.log
62.IF "$(BUILD_DMAKE)"!="NO"
63	-$(GNUMAKE) -C dmake distclean
64.ENDIF
65
66
67clean .PHONY:
68	-rm -rf */$(INPATH)
69	-rm -rf solver/*/$(INPATH)
70.IF "$(BUILD_DMAKE)"!="NO"
71	-echo cleaning up dmake...
72	-$(GNUMAKE) -C dmake clean
73.ENDIF
74
75#
76# configure target
77#
78
79configure .PHONY SETDIR=. :
80	@configure
81
82
83#
84# install target
85#
86
87install .PHONY :
88	@test "$(DESTDIR)$(prefix)" != "" || (echo Usage: make install [DESTDIR=DIR] prefix=DIR; exit 2)
89	cp -p instsetoo_native/$(INPATH)/bin/* $(SOLARVER)/$(INPATH)/bin
90	cd instsetoo_native/util \
91	    && OUT=$(INPATH)\
92	    LOCAL_OUT=$(INPATH)\
93	    LOCAL_COMMON_OUT=$(INPATH)\
94            DEFAULT_TO_ENGLISH_FOR_PACKING=1\
95	    PYTHONPATH=$(SOLARVER)/$(INPATH)/bin:$(SOLARVER)/$(INPATH)/lib:$(PYTHONPATH) \
96	    $(PERL) $(SOLARENV)/bin/make_installer.pl -f openoffice.lst -l $(WITH_LANG:f:t",") -p OpenOffice -buildid 0 -simple $(DESTDIR)$(prefix)
97
98#*************************************************************************
99
100