src/pkgdefs/SUNWldtp/Makefile
author Michal Pryc <Michal.Pryc@Sun.Com>
Tue, 06 Oct 2009 10:36:00 +0100
changeset 1391 1a9bd005489f
child 1516 8c950a3b4171
permissions -rw-r--r--
7987 LDTP package needs to be included in the gate
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1391
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
     1
#
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
     2
# CDDL HEADER START
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
     3
#
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
     7
#
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    11
# and limitations under the License.
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    12
#
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    18
#
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    19
# CDDL HEADER END
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    20
#
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    21
# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    22
# Use is subject to license terms.
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    23
#
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    24
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    25
MACH:sh = uname -p
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    26
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    27
ROOT = ../../../proto/root_$(MACH)
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    28
PKG = SUNWldtp
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    29
PKGARCHIVE = ../../../packages/$(MACH)
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    30
PROTOLOC = $(ROOT)/usr/lib/python2.4/vendor-packages
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    31
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    32
# By default create only the sysv package; failure of the IPS package to build
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    33
# may confuse without enlightening.
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    34
install: sysv-pkg
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    35
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    36
sysv-pkg: $(PKGARCHIVE) prototype
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    37
	pkgmk -a $(MACH) -o -r $(ROOT) -d $(PKGARCHIVE)
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    38
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    39
clean: FRC
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    40
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    41
clobber: clean
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    42
	rm -rf $(PKGARCHIVE)/$(PKG)
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    43
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    44
$(PKGARCHIVE):
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    45
	[ -d $(PKGARCHIVE) ] || mkdir -p $(PKGARCHIVE)
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    46
1a9bd005489f 7987 LDTP package needs to be included in the gate
Michal Pryc <Michal.Pryc@Sun.Com>
parents:
diff changeset
    47
FRC: