xref: /AOO41X/main/makefile.rc (revision b5da552ccefc4034e06a43bfae43fb8a8b64a7ad)
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	-rm -rf */$(INPATH)
63	-rm -rf solver/*/$(INPATH)
64.IF "$(BUILD_DMAKE)"!="NO"
65	-echo cleaning up dmake...
66	-$(GNUMAKE) -C dmake clean
67.ENDIF
68
69#
70# configure target
71#
72
73configure .PHONY SETDIR=. :
74	@configure
75
76
77#
78# install target
79#
80
81install .PHONY :
82	@test "$(DESTDIR)$(prefix)" != "" || (echo Usage: make install [DESTDIR=DIR] prefix=DIR; exit 2)
83	cp -p instsetoo_native/$(INPATH)/bin/* $(SOLARVER)/$(INPATH)/bin
84	cd instsetoo_native/util \
85	    && OUT=$(INPATH)\
86	    LOCAL_OUT=$(INPATH)\
87	    LOCAL_COMMON_OUT=$(INPATH)\
88            DEFAULT_TO_ENGLISH_FOR_PACKING=1\
89	    PYTHONPATH=$(SOLARVER)/$(INPATH)/bin:$(SOLARVER)/$(INPATH)/lib:$(PYTHONPATH) \
90	    $(PERL) $(SOLARENV)/bin/make_installer.pl -f openoffice.lst -l $(WITH_LANG:f:t",") -p OpenOffice -buildid 0 -simple $(DESTDIR)$(prefix)
91
92#*************************************************************************
93
94