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