update dev300-m58
[ooovba.git] / setup_native / scripts / makefile.mk
blobc1df2ff56026871505b59efd8e2277d989090cf3
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.18.112.1 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
32 PRJ=..
34 PRJNAME=setup_native
35 TARGET=install
37 # --- Settings -----------------------------------------------------
39 .INCLUDE : settings.mk
41 # --- Files --------------------------------------------------------
43 UNIXTEXT= \
44 $(BIN)$/langpackscript.sh \
45 $(BIN)$/linuxpatchscript.sh \
46 $(BIN)$/javaloader.sh \
47 $(BIN)$/register_extensions \
48 $(BIN)$/deregister_extensions \
49 $(BIN)$/unpack_update.sh \
50 $(BIN)$/update.sh \
51 $(BIN)$/downloadscript.sh
53 .IF "$(OS)" == "SOLARIS" || "$(OS)" == "LINUX"
54 UNIXTEXT+= $(BIN)$/stclient_wrapper.sh
55 .ENDIF
57 FAKEDB=$(BIN)$/noarch/fake-db-1.0-0.noarch.rpm
58 FAKEDBROOT=$(COMMONMISC)/$(TARGET)/fake-db-root
60 # --- Targets ------------------------------------------------------
62 .INCLUDE : target.mk
64 .IF "$(OS)" == "SOLARIS" || "$(OS)" == "LINUX"
66 ALLTAR: $(BIN)$/install $(BIN)$/uninstall
68 $(BIN)$/install: install_$(OS:l).sh
69 $(PERL) install_create.pl $& $@
70 -chmod 775 $@
72 .ENDIF
74 .IF "$(OS)" == "LINUX"
76 $(FAKEDB) : fake-db.spec
77 $(MKDIRHIER) $(FAKEDBROOT)
78 $(RPM) --define "_builddir $(shell @cd $(FAKEDBROOT) && pwd)" --define "_rpmdir $(shell @cd $(BIN) && pwd)" -bb $<
80 $(BIN)$/install: $(FAKEDB)
82 $(BIN)$/uninstall: uninstall_linux.sh
83 $(TYPE) $< | tr -d "\015" > $@
84 -chmod 775 $@
86 .ENDIF
88 .IF "$(OS)" == "SOLARIS"
90 $(BIN)$/install: $(LB)$/getuid.so.stripped
92 $(BIN)$/uninstall: uninstall_solaris.sh $(LB)$/getuid.so.stripped
93 $(PERL) install_create.pl $< $@
94 -chmod 775 $@
96 $(LB)$/getuid.so.stripped: $(LB)$/getuid.so
97 @$(COPY) $< $@
98 @/usr/ccs/bin/strip $@
100 .ENDIF