blob: 0688e27a7d90be212238832b7d8e0eb8a702ef7a [file] [log] [blame]
Andrew Rist0151f332011-11-30 00:09:19 +00001#**************************************************************
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# *************************************************************
Martin Hollmichel28d17292002-07-11 11:18:48 +000021
22TARGET=OpenOffice.org
23MAKEFILERC=true
24
25#
Kurt Zenker77392f22006-01-06 10:17:31 +000026# build targets
Martin Hollmichel28d17292002-07-11 11:18:48 +000027#
28
Kurt Zenker77392f22006-01-06 10:17:31 +000029build_all : build_instsetoo_native
Martin Hollmichel28d17292002-07-11 11:18:48 +000030
Kurt Zenkera1ecfcc2008-03-06 11:20:36 +000031all .PHONY : build_all
32
Kurt Zenker77392f22006-01-06 10:17:31 +000033check_modules .PHONY :
Jens-Heiner Rechtien9160b0d2005-08-05 13:01:22 +000034 @+echo Checking module list
Kurt Zenker77392f22006-01-06 10:17:31 +000035 @+perl $(SOLARENV)$/bin$/build.pl --checkmodules
Jens-Heiner Rechtien9160b0d2005-08-05 13:01:22 +000036
Kurt Zenker77392f22006-01-06 10:17:31 +000037# Only build when all modules available
38build_instsetoo_native .SETDIR=instsetoo_native/prj : check_modules
RĂ¼diger Timm1ed98282004-09-08 14:24:05 +000039 @+perl $(SOLARENV)$/bin$/build.pl --all $(PROFULLSWITCH)
Martin Hollmichel28d17292002-07-11 11:18:48 +000040
Kurt Zenker77392f22006-01-06 10:17:31 +000041depend .SETDIR=instsetoo_native/prj : check_modules
RĂ¼diger Timm1ed98282004-09-08 14:24:05 +000042 @+perl $(SOLARENV)$/bin$/build.pl --all $(PROFULLSWITCH) depend=t
Martin Hollmichel28d17292002-07-11 11:18:48 +000043
44
45#
46# bootstrap target
47#
48
49bootstrap .PHONY :
Martin Hollmichel4531fc52002-10-02 08:18:56 +000050 @bootstrap
Martin Hollmichel28d17292002-07-11 11:18:48 +000051
52
Martin Hollmicheld611db52003-01-20 14:00:18 +000053distclean .PHONY: clean
Vladimir Glazounov815f1572009-01-21 17:47:03 +000054 -rm config.cache
55 -rm config.log
Jens-Heiner Rechtien0eb90f62004-03-09 11:31:24 +000056.IF "$(BUILD_DMAKE)"!="NO"
Martin Hollmicheld611db52003-01-20 14:00:18 +000057 -$(GNUMAKE) -C dmake distclean
Jens-Heiner Rechtien0eb90f62004-03-09 11:31:24 +000058.ENDIF
Martin Hollmicheld611db52003-01-20 14:00:18 +000059
60
Martin Hollmichel4531fc52002-10-02 08:18:56 +000061clean .PHONY:
Ken Foskey0bf41c32002-10-13 04:19:45 +000062 -rm -rf */$(INPATH)
63 -rm -rf solver/*/$(INPATH)
Jian Fang Zhang51c02142012-06-05 02:15:44 +000064.IF "$(ADDITIONAL_REPOSITORIES)"!=""
65 -rm -rf $(foreach,f,$(ADDITIONAL_REPOSITORIES) $f/*/$(INPATH))
66.ENDIF
Jens-Heiner Rechtien0eb90f62004-03-09 11:31:24 +000067.IF "$(BUILD_DMAKE)"!="NO"
Ken Foskey0bf41c32002-10-13 04:19:45 +000068 -echo cleaning up dmake...
Martin Hollmicheld611db52003-01-20 14:00:18 +000069 -$(GNUMAKE) -C dmake clean
Jens-Heiner Rechtien0eb90f62004-03-09 11:31:24 +000070.ENDIF
Martin Hollmichel4531fc52002-10-02 08:18:56 +000071
Martin Hollmichel28d17292002-07-11 11:18:48 +000072#
73# configure target
74#
75
Vladimir Glazounov815f1572009-01-21 17:47:03 +000076configure .PHONY SETDIR=. :
Martin Hollmichel28d17292002-07-11 11:18:48 +000077 @configure
78
Pascal Junck5c0df742004-10-27 14:23:02 +000079
Kurt Zenkera1ecfcc2008-03-06 11:20:36 +000080#
81# install target
82#
83
84install .PHONY :
85 @test "$(DESTDIR)$(prefix)" != "" || (echo Usage: make install [DESTDIR=DIR] prefix=DIR; exit 2)
86 cp -p instsetoo_native/$(INPATH)/bin/* $(SOLARVER)/$(INPATH)/bin
87 cd instsetoo_native/util \
88 && OUT=$(INPATH)\
89 LOCAL_OUT=$(INPATH)\
90 LOCAL_COMMON_OUT=$(INPATH)\
91 DEFAULT_TO_ENGLISH_FOR_PACKING=1\
92 PYTHONPATH=$(SOLARVER)/$(INPATH)/bin:$(SOLARVER)/$(INPATH)/lib:$(PYTHONPATH) \
93 $(PERL) $(SOLARENV)/bin/make_installer.pl -f openoffice.lst -l $(WITH_LANG:f:t",") -p OpenOffice -buildid 0 -simple $(DESTDIR)$(prefix)
94
Martin Hollmichel28d17292002-07-11 11:18:48 +000095#*************************************************************************
96