xref: /onnv-gate/usr/src/cmd/sgs/packages/Makefile.targ (revision 9577:dca915fd85d3)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
53850Sab196087# Common Development and Distribution License (the "License").
63850Sab196087# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
21*9577SRod.Evans@Sun.COM# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
220Sstevel@tonic-gate# Use is subject to license terms.
230Sstevel@tonic-gate
240Sstevel@tonic-gatepkginfo: ../common/pkginfo.tmpl awk_pkginfo
250Sstevel@tonic-gate	$(RM) $@; nawk -f awk_pkginfo ../common/$@.tmpl > $@
260Sstevel@tonic-gate
270Sstevel@tonic-gatepkg: FRC
280Sstevel@tonic-gate	@ $(RM) -r $(PACKAGE)
29*9577SRod.Evans@Sun.COM	pkgmk -f prototype_$(MACH) -d $(PKGARCHIVE) -r $(ROOT) \
300Sstevel@tonic-gate		-o $(PACKAGE) 2>&1 | egrep -v "$(SRC)|parametric paths may"
310Sstevel@tonic-gate	pkgtrans -o -s $(PKGARCHIVE) $(PACKAGE).tmp $(PACKAGE)
320Sstevel@tonic-gate	$(RM) -r $(PKGARCHIVE)/$(PACKAGE)
330Sstevel@tonic-gate	mv $(PKGARCHIVE)/$(PACKAGE).tmp $(PKGARCHIVE)/$(PACKAGE)
340Sstevel@tonic-gate
350Sstevel@tonic-gate$(DATAFILES): ../common/$$@
360Sstevel@tonic-gate	$(RM) $@; cp ../common/$@ $@
370Sstevel@tonic-gate
386322Sab196087awk_pkginfo:	../bld_awk_pkginfo ../common/readme_revision ../common/$(README)
396322Sab196087	../bld_awk_pkginfo \
406322Sab196087		-R `perl ../common/readme_revision -d ../common/$(README)` \
410Sstevel@tonic-gate		-m $(MACH) -r "$(RELEASE)" -o $@
420Sstevel@tonic-gate
430Sstevel@tonic-gateclean: FRC
440Sstevel@tonic-gate	$(RM) $(CLEANFILES)
450Sstevel@tonic-gate
460Sstevel@tonic-gateclobber: clean FRC
470Sstevel@tonic-gate	$(RM) -r $(CLOBBERFILES)
480Sstevel@tonic-gate
490Sstevel@tonic-gateFRC:
50