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