xref: /trunk/main/makefile.rc (revision c0f0fa7a)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20# *************************************************************
21
22TARGET=OpenOffice.org
23MAKEFILERC=true
24
25#
26# build targets
27#
28
29build_all : build_instsetoo_native
30
31all .PHONY : build_all
32
33check_modules .PHONY :
34	@+echo Checking module list
35	@+perl $(SOLARENV)$/bin$/build.pl --checkmodules
36
37# Only build when all modules available
38build_instsetoo_native .SETDIR=instsetoo_native/prj : check_modules
39	@+perl $(SOLARENV)$/bin$/build.pl --all $(PROFULLSWITCH)
40
41depend .SETDIR=instsetoo_native/prj : check_modules
42	@+perl $(SOLARENV)$/bin$/build.pl --all $(PROFULLSWITCH) depend=t
43
44
45#
46# bootstrap target
47#
48
49bootstrap .PHONY :
50	@bootstrap
51
52
53distclean .PHONY: clean
54	-rm config.cache
55	-rm config.log
56.IF "$(BUILD_DMAKE)"!="NO"
57	-$(GNUMAKE) -C dmake distclean
58.ENDIF
59
60
61clean .PHONY:
62	@test -n "$(INPATH)" || (echo Build environment not set; exit 1)
63	@test -n "$(OUTPATH)" || (echo Build environment not set; exit 1)
64	-rm -rf */$(INPATH)
65	-rm -rf */$(OUTPATH)
66	-rm -rf solver/*/$(INPATH)
67	-rm -rf solver/*/$(OUTPATH)
68	-rm -rf solenv/inc/reporevision.lst
69.IF "$(ADDITIONAL_REPOSITORIES)"!=""
70	-rm -rf $(foreach,f,$(ADDITIONAL_REPOSITORIES) $f/*/$(INPATH))
71	-rm -rf $(foreach,f,$(ADDITIONAL_REPOSITORIES) $f/*/$(OUTPATH))
72.ENDIF
73.IF "$(BUILD_DMAKE)"!="NO"
74	-echo cleaning up dmake...
75	-$(GNUMAKE) -C dmake clean
76.ENDIF
77
78#
79# configure target
80#
81
82configure .PHONY SETDIR=. :
83	@configure
84
85
86#
87# install target
88#
89
90install .PHONY :
91	@test "$(DESTDIR)$(prefix)" != "" || (echo Usage: make install [DESTDIR=DIR] prefix=DIR; exit 2)
92	cp -p instsetoo_native/$(INPATH)/bin/* $(SOLARVER)/$(INPATH)/bin
93	cd instsetoo_native/util \
94	    && OUT=$(INPATH)\
95	    LOCAL_OUT=$(INPATH)\
96	    LOCAL_COMMON_OUT=$(INPATH)\
97            DEFAULT_TO_ENGLISH_FOR_PACKING=1\
98	    PYTHONPATH=$(SOLARVER)/$(INPATH)/bin:$(SOLARVER)/$(INPATH)/lib:$(PYTHONPATH) \
99	    $(PERL) $(SOLARENV)/bin/make_installer.pl -f openoffice.lst -l $(WITH_LANG:f:t",") -p OpenOffice -buildid 0 -simple $(DESTDIR)$(prefix)
100
101#*************************************************************************
102
103