| Andrew Rist | 0151f33 | 2011-11-30 00:09:19 +0000 | [diff] [blame] | 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 | # ************************************************************* |
| Martin Hollmichel | 28d1729 | 2002-07-11 11:18:48 +0000 | [diff] [blame] | 21 | |
| 22 | TARGET=OpenOffice.org |
| 23 | MAKEFILERC=true |
| 24 | |
| 25 | # |
| Kurt Zenker | 77392f2 | 2006-01-06 10:17:31 +0000 | [diff] [blame] | 26 | # build targets |
| Martin Hollmichel | 28d1729 | 2002-07-11 11:18:48 +0000 | [diff] [blame] | 27 | # |
| 28 | |
| Kurt Zenker | 77392f2 | 2006-01-06 10:17:31 +0000 | [diff] [blame] | 29 | build_all : build_instsetoo_native |
| Martin Hollmichel | 28d1729 | 2002-07-11 11:18:48 +0000 | [diff] [blame] | 30 | |
| Kurt Zenker | a1ecfcc | 2008-03-06 11:20:36 +0000 | [diff] [blame] | 31 | all .PHONY : build_all |
| 32 | |
| Kurt Zenker | 77392f2 | 2006-01-06 10:17:31 +0000 | [diff] [blame] | 33 | check_modules .PHONY : |
| Jens-Heiner Rechtien | 9160b0d | 2005-08-05 13:01:22 +0000 | [diff] [blame] | 34 | @+echo Checking module list |
| Kurt Zenker | 77392f2 | 2006-01-06 10:17:31 +0000 | [diff] [blame] | 35 | @+perl $(SOLARENV)$/bin$/build.pl --checkmodules |
| Jens-Heiner Rechtien | 9160b0d | 2005-08-05 13:01:22 +0000 | [diff] [blame] | 36 | |
| Kurt Zenker | 77392f2 | 2006-01-06 10:17:31 +0000 | [diff] [blame] | 37 | # Only build when all modules available |
| 38 | build_instsetoo_native .SETDIR=instsetoo_native/prj : check_modules |
| RĂ¼diger Timm | 1ed9828 | 2004-09-08 14:24:05 +0000 | [diff] [blame] | 39 | @+perl $(SOLARENV)$/bin$/build.pl --all $(PROFULLSWITCH) |
| Martin Hollmichel | 28d1729 | 2002-07-11 11:18:48 +0000 | [diff] [blame] | 40 | |
| Kurt Zenker | 77392f2 | 2006-01-06 10:17:31 +0000 | [diff] [blame] | 41 | depend .SETDIR=instsetoo_native/prj : check_modules |
| RĂ¼diger Timm | 1ed9828 | 2004-09-08 14:24:05 +0000 | [diff] [blame] | 42 | @+perl $(SOLARENV)$/bin$/build.pl --all $(PROFULLSWITCH) depend=t |
| Martin Hollmichel | 28d1729 | 2002-07-11 11:18:48 +0000 | [diff] [blame] | 43 | |
| 44 | |
| 45 | # |
| 46 | # bootstrap target |
| 47 | # |
| 48 | |
| 49 | bootstrap .PHONY : |
| Martin Hollmichel | 4531fc5 | 2002-10-02 08:18:56 +0000 | [diff] [blame] | 50 | @bootstrap |
| Martin Hollmichel | 28d1729 | 2002-07-11 11:18:48 +0000 | [diff] [blame] | 51 | |
| 52 | |
| Martin Hollmichel | d611db5 | 2003-01-20 14:00:18 +0000 | [diff] [blame] | 53 | distclean .PHONY: clean |
| Vladimir Glazounov | 815f157 | 2009-01-21 17:47:03 +0000 | [diff] [blame] | 54 | -rm config.cache |
| 55 | -rm config.log |
| Jens-Heiner Rechtien | 0eb90f6 | 2004-03-09 11:31:24 +0000 | [diff] [blame] | 56 | .IF "$(BUILD_DMAKE)"!="NO" |
| Martin Hollmichel | d611db5 | 2003-01-20 14:00:18 +0000 | [diff] [blame] | 57 | -$(GNUMAKE) -C dmake distclean |
| Jens-Heiner Rechtien | 0eb90f6 | 2004-03-09 11:31:24 +0000 | [diff] [blame] | 58 | .ENDIF |
| Martin Hollmichel | d611db5 | 2003-01-20 14:00:18 +0000 | [diff] [blame] | 59 | |
| 60 | |
| Martin Hollmichel | 4531fc5 | 2002-10-02 08:18:56 +0000 | [diff] [blame] | 61 | clean .PHONY: |
| Ken Foskey | 0bf41c3 | 2002-10-13 04:19:45 +0000 | [diff] [blame] | 62 | -rm -rf */$(INPATH) |
| 63 | -rm -rf solver/*/$(INPATH) |
| Jian Fang Zhang | 51c0214 | 2012-06-05 02:15:44 +0000 | [diff] [blame] | 64 | .IF "$(ADDITIONAL_REPOSITORIES)"!="" |
| 65 | -rm -rf $(foreach,f,$(ADDITIONAL_REPOSITORIES) $f/*/$(INPATH)) |
| 66 | .ENDIF |
| Jens-Heiner Rechtien | 0eb90f6 | 2004-03-09 11:31:24 +0000 | [diff] [blame] | 67 | .IF "$(BUILD_DMAKE)"!="NO" |
| Ken Foskey | 0bf41c3 | 2002-10-13 04:19:45 +0000 | [diff] [blame] | 68 | -echo cleaning up dmake... |
| Martin Hollmichel | d611db5 | 2003-01-20 14:00:18 +0000 | [diff] [blame] | 69 | -$(GNUMAKE) -C dmake clean |
| Jens-Heiner Rechtien | 0eb90f6 | 2004-03-09 11:31:24 +0000 | [diff] [blame] | 70 | .ENDIF |
| Martin Hollmichel | 4531fc5 | 2002-10-02 08:18:56 +0000 | [diff] [blame] | 71 | |
| Martin Hollmichel | 28d1729 | 2002-07-11 11:18:48 +0000 | [diff] [blame] | 72 | # |
| 73 | # configure target |
| 74 | # |
| 75 | |
| Vladimir Glazounov | 815f157 | 2009-01-21 17:47:03 +0000 | [diff] [blame] | 76 | configure .PHONY SETDIR=. : |
| Martin Hollmichel | 28d1729 | 2002-07-11 11:18:48 +0000 | [diff] [blame] | 77 | @configure |
| 78 | |
| Pascal Junck | 5c0df74 | 2004-10-27 14:23:02 +0000 | [diff] [blame] | 79 | |
| Kurt Zenker | a1ecfcc | 2008-03-06 11:20:36 +0000 | [diff] [blame] | 80 | # |
| 81 | # install target |
| 82 | # |
| 83 | |
| 84 | install .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 Hollmichel | 28d1729 | 2002-07-11 11:18:48 +0000 | [diff] [blame] | 95 | #************************************************************************* |
| 96 | |