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