Makefile revision 2
474N/A#
474N/A# CDDL HEADER START
474N/A#
474N/A# The contents of this file are subject to the terms of the
1068N/A# Common Development and Distribution License (the "License").
474N/A# You may not use this file except in compliance with the License.
474N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A# Copyright (c) 2010, Oracle and/or it's affiliates. All rights reserved.
919N/A#
919N/A
919N/Ainclude ../make-rules/shared-macros.mk
474N/A
474N/ACOMPONENT_DIRS += lcms
474N/ACOMPONENT_DIRS += file
474N/ACOMPONENT_DIRS += pycups
493N/A
474N/Adownload: TARGET = download
970N/Aprep: TARGET = prep
970N/Abuild: TARGET = build
970N/Ainstall: TARGET = install
970N/Apublish: TARGET = publish
474N/Avalidate: TARGET = validate
1068N/Aclean: TARGET = clean
474N/Aclobber: TARGET = clobber
911N/A
1068N/A.DEFAULT: publish
1068N/A
911N/A.PARALLEL: $(COMPONENT_DIRS)
474N/A
474N/Adownload prep build install publish validate: setup $(COMPONENT_DIRS)
474N/A
474N/Aclean clobber: $(COMPONENT_DIRS)
1068N/Aifeq ($(findstring file://, $(PKG_REPO)),file://)
493N/A $(RM) -r $(PKG_REPO:file://%=%) $(WS_LOGS)
474N/Aendif
970N/A
970N/Asetup: $(WS_LOGS) repo
970N/A
474N/A$(WS_LOGS):
474N/A $(MKDIR) $@
474N/A
repo:
$(PKGSEND) -s $(PKG_REPO) create-repository \
--set-property publisher.prefix=$(PUBLISHER)
$(COMPONENT_DIRS): FORCE
@cd $@ ; echo "$(TARGET) \c" ; pwd ; \
$(GMAKE) $(TARGET) >$(WS_LOGS)/$(TARGET):$@.log 2>&1
FORCE: