Debian Codegraph @

builds/install/arch-specific/hpux/Makefile.in

raw
1 # This library is free software; you can redistribute it and/or
2 # modify it under the terms of the GNU Lesser General Public
3 # License as published by the Free Software Foundation; either
4 # version 2.1 of the License, or (at your option) any later version.
5 # You may obtain a copy of the Licence at
6 # http://www.gnu.org/licences/lgpl.html
7 #
8 # As a special exception this file can also be included in modules
9 # with other source code as long as that source code has been
10 # released under an Open Source Initiative certificed licence.
11 # More information about OSI certification can be found at:
12 # http://www.opensource.org
13 #
14 # This module is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU Lesser General Public Licence for more details.
18 #
19 # This module was created by members of the firebird development
20 # team. All individual contributions remain the Copyright (C) of
21 # those individuals and all rights are reserved. Contributors to
22 # this file are either listed below or can be obtained from a CVS
23 # history command.
24 #
25 # Created by: Mark O'Donohue <[email protected]>
26 #
27 # Contributor(s):
28 #
29 #
30 ROOT=..
31
32
33
34 include $(ROOT)/gen/make.defaults
35 include $(ROOT)/gen/make.platform
36 include $(ROOT)/gen/make.rules
37 include $(ROOT)/gen/make.shared.variables
38
39
40 FirebirdInstallPrefix=@prefix@
41
42 @SET_MAKE@
43
44 FIREBIRD=$(FirebirdInstallPrefix)
45
46 export -n FIREBIRD
47 export -n INTERBASE
48
49 .PHONY: install dist packages depotfile tarfile
50 .PHONY: buildDepot buildTarDir buildImageDir buildRoot buildDebugInfo
51
52 # Some of these targets are run from the root tree of the build.
53 # those need to know where the install subdirectory is kept.
54 # Others are run locally these need to know the path back to the
55 # root of the build tree.
56
57 BuildRoot=$(GEN_ROOT)
58
59 InstallRoot=.
60
61
62 FirebirdBuildPrefix=$(GEN_ROOT)
63
64 #export FirebirdBuildPrefix
65 #export FirebirdInstallPrefix
66 #export PackageVersion
67
68 BuildVersion=$(FirebirdVersion).$(BuildNum)
69
70 Version=$(BuildVersion)-$(PackageVersion)
71
72
73
74 # This means something like: FirebirdCS-2.0.0-1.i386.tar
75
76 TarDir= Firebird-$(Version).$(CpuType)
77 TarFile=Firebird-$(Version).$(CpuType).tar
78 TgzFile=$(TarFile).gz
79 DepotFile=Firebird-$(Version).$(CpuType).depot
80 RPMFile=Firebird-$(Version).$(CpuType).rpm
81 #DebugDir=Firebird-debuginfo-$(Version).$(CpuType)
82 #DebugFile=Firebird-debuginfo-$(Version).$(CpuType).tar
83 psfFile=firebird.psf
84
85 PkgSrcDir=$(InstallRoot)/$(ArchType)
86 ScriptDir=$(GEN_ROOT)/install/scripts/
87 RPMSrcDir=$(GEN_ROOT)/install/scripts
88
89 TarInstallDir=$(GEN_ROOT)/install
90
91 dist : packages
92
93 #packages: depotfile
94 packages: tarfile depotfile
95 #packages: tarfile debugfile depotfile
96
97 depotfile: buildRoot $(DepotFile)
98
99 $(DepotFile): buildDepot
100 (cd $(GEN_ROOT); /usr/sbin/swpackage -d "| gzip -c > $(DepotFile).gz" -x media_type=tape -s $(psfFile))
101
102 tarfile: buildRoot $(TgzFile)
103
104 $(TgzFile) : buildTarDir
105 (cd $(GEN_ROOT); tar -cvf - $(TarDir) | gzip -c >$(TgzFile))
106
107 #debugfile: $(DebugFile)
108
109 #$(DebugFile) : buildImageDir
110 # (cd $(GEN_ROOT)/$(DebugDir); tar -cvf ../$(DebugFile) *)
111
112 buildRoot:
113 (cd $(GEN_ROOT); ./install/makeinstallImage.sh)
114
115 # Use this line if you don't want to use separate debug info
116 buildImageDir: buildRoot
117 #buildImageDir: buildDebugInfo
118
119
120 buildTarDir: buildImageDir
121 mkdir -p $(GEN_ROOT)/$(TarDir)
122 cp -r $(GEN_ROOT)/install/scripts $(GEN_ROOT)/$(TarDir)
123 cp -r $(GEN_ROOT)/install/scripts/tarmainInstall.sh $(GEN_ROOT)/$(TarDir)/install.sh
124 chmod a+x $(GEN_ROOT)/$(TarDir)/install.sh $(GEN_ROOT)/$(TarDir)/scripts/*sh
125 (cd $(GEN_ROOT)/buildroot; rm -f buildroot.tar manifest.txt; tar -cvf buildroot.tar * )
126 (cd $(GEN_ROOT)/buildroot; tar -tvf buildroot.tar > manifest.txt )
127 (cd $(GEN_ROOT)/buildroot; cp buildroot.tar ../$(TarDir)/buildroot.tar )
128 (cd $(GEN_ROOT)/buildroot; cp manifest.txt ../$(TarDir)/manifest.txt )
129
130 install: buildTarDir
131 (cd $(GEN_ROOT)/$(TarDir); FIREBIRD= FIREBIRD_LOCK= ./install.sh)