1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.rc,v $
12 # This file is part of OpenOffice.org.
14 # OpenOffice.org is free software: you can redistribute it and/or modify
15 # it under the terms of the GNU Lesser General Public License version 3
16 # only, as published by the Free Software Foundation.
18 # OpenOffice.org is distributed in the hope that it will be useful,
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 # GNU Lesser General Public License version 3 for more details
22 # (a copy is included in the LICENSE file that accompanied this code).
24 # You should have received a copy of the GNU Lesser General Public License
25 # version 3 along with OpenOffice.org. If not, see
26 # <http://www.openoffice.org/license.html>
27 # for a copy of the LGPLv3 License.
29 #*************************************************************************
38 build_all : build_instsetoo_native
40 all .PHONY : build_all
42 check_modules .PHONY :
43 @+echo Checking module list
44 @+perl $(SOLARENV)$/bin$/build.pl --checkmodules
46 idl_offapi .SETDIR=offapi .PHONY :
47 @+perl $(SOLARENV)$/bin$/build.pl
48 @+perl $(SOLARENV)$/bin$/deliver.pl
50 idl_offuh .SETDIR=offuh .PHONY :
51 @+perl $(SOLARENV)$/bin$/build.pl
52 @+perl $(SOLARENV)$/bin$/deliver.pl
54 idl : idl_offapi idl_offuh
56 # Only build when all modules available
57 build_instsetoo_native .SETDIR=instsetoo_native/prj : check_modules
58 @+perl $(SOLARENV)$/bin$/build.pl --all $(PROFULLSWITCH)
60 depend .SETDIR=instsetoo_native/prj : check_modules
61 @+perl $(SOLARENV)$/bin$/build.pl --all $(PROFULLSWITCH) depend=t
72 distclean .PHONY: clean
75 .IF "$(BUILD_DMAKE)"!="NO"
76 -$(GNUMAKE) -C dmake distclean
82 -rm -rf solver/*/$(INPATH)
83 .IF "$(BUILD_DMAKE)"!="NO"
84 -echo cleaning up dmake...
85 -$(GNUMAKE) -C dmake clean
92 configure .PHONY SETDIR=. :
101 @test "$(DESTDIR)$(prefix)" != "" || (echo Usage: make install [DESTDIR=DIR] prefix=DIR; exit 2)
102 cp -p instsetoo_native/$(INPATH)/bin/* $(SOLARVER)/$(INPATH)/bin
103 cd instsetoo_native/util \
106 LOCAL_COMMON_OUT=$(INPATH)\
107 DEFAULT_TO_ENGLISH_FOR_PACKING=1\
108 PYTHONPATH=$(SOLARVER)/$(INPATH)/bin:$(SOLARVER)/$(INPATH)/lib:$(PYTHONPATH) \
109 $(PERL) $(SOLARENV)/bin/make_installer.pl -f openoffice.lst -l $(WITH_LANG:f:t",") -p OpenOffice -buildid 0 -simple $(DESTDIR)$(prefix)
111 #*************************************************************************