1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org.  If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#*************************************************************************
27
28PRJ=..
29
30PRJNAME=setup_native
31TARGET=install
32
33# --- Settings -----------------------------------------------------
34
35.INCLUDE :	settings.mk
36.IF "$(L10N_framework)"==""
37# --- Files --------------------------------------------------------
38
39UNIXTEXT= \
40	$(BIN)$/langpackscript.sh \
41	$(BIN)$/linuxpatchscript.sh \
42	$(BIN)$/javaloader.sh \
43	$(BIN)$/register_extensions \
44	$(BIN)$/deregister_extensions \
45	$(BIN)$/unpack_update.sh \
46	$(BIN)$/update.sh \
47	$(BIN)$/downloadscript.sh
48
49.IF "$(OS)" == "SOLARIS" || "$(OS)" == "LINUX"
50UNIXTEXT+= $(BIN)$/stclient_wrapper.sh
51.ENDIF
52
53NOARCH=$(BIN)$/noarch
54FAKEDB=$(NOARCH)/fake-db-1.0-0.noarch.rpm
55FAKEDBROOT=$(COMMONMISC)/$(TARGET)/fake-db-root
56
57# --- Targets ------------------------------------------------------
58
59.ENDIF # L10N_framework
60.INCLUDE :	target.mk
61.IF "$(L10N_framework)"==""
62.IF "$(OS)" == "SOLARIS" || ( "$(OS)" == "LINUX" && "$(PKGFORMAT)"!="$(PKGFORMAT:s/rpm//)" )
63
64ALLTAR: $(BIN)$/install $(BIN)$/uninstall
65
66$(BIN)$/install: install_$(OS:l).sh
67	$(PERL) install_create.pl $& $@
68	-chmod 775 $@
69
70.ENDIF
71
72.IF "$(OS)" == "LINUX"
73.IF "$(PKGFORMAT)"!="$(PKGFORMAT:s/rpm//)"
74
75$(FAKEDB) : fake-db.spec
76	$(MKDIRHIER) $(FAKEDBROOT)
77	$(RPM) --define "_builddir $(shell @cd $(FAKEDBROOT) && pwd)" --define "_rpmdir $(shell @cd $(BIN) && pwd)" -bb $<
78    chmod g+w $(NOARCH)
79
80$(BIN)$/install: $(FAKEDB)
81.ENDIF          # "$(PKGFORMAT)"!="$(PKGFORMAT:s/rpm//)"
82
83$(BIN)$/uninstall: uninstall_linux.sh
84	$(TYPE) $< | tr -d "\015" > $@
85	-chmod 775 $@
86
87.ENDIF          # "$(OS)" == "LINUX"
88
89.IF "$(OS)" == "SOLARIS"
90
91$(BIN)$/install: $(LB)$/getuid.so.stripped
92
93$(BIN)$/uninstall: uninstall_solaris.sh $(LB)$/getuid.so.stripped
94	$(PERL) install_create.pl $<  $@
95    -chmod 775 $@
96
97$(LB)$/getuid.so.stripped: $(LB)$/getuid.so
98	@$(COPY) $< $@
99	@/usr/ccs/bin/strip $@
100
101.ENDIF
102
103.ENDIF # L10N_framework
104