Makefile revision 6
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift#
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift# CDDL HEADER START
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift#
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift# The contents of this file are subject to the terms of the
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift# Common Development and Distribution License (the "License").
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift# You may not use this file except in compliance with the License.
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift#
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift# or http://www.opensolaris.org/os/licensing.
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift# See the License for the specific language governing permissions
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift# and limitations under the License.
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift#
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift# When distributing Covered Code, include this CDDL HEADER in each
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift# If applicable, add the following below this CDDL HEADER, with the
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift# fields enclosed by brackets "[]" replaced with your own identifying
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift# information: Portions Copyright [yyyy] [name of copyright owner]
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift#
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift# CDDL HEADER END
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift#
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift# Copyright (c) 2010, Oracle and/or it's affiliates. All rights reserved.
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift#
a395dd575518d9e5280fc5d5d5ef47c61b174647ludovicp
950dae14045dfafef39e115efea5af8a78779bc9matthew_swiftinclude ../make-rules/shared-macros.mk
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift
950dae14045dfafef39e115efea5af8a78779bc9matthew_swiftCOMPONENT_DIRS += lcms
950dae14045dfafef39e115efea5af8a78779bc9matthew_swiftCOMPONENT_DIRS += file
950dae14045dfafef39e115efea5af8a78779bc9matthew_swiftCOMPONENT_DIRS += pycups
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift
950dae14045dfafef39e115efea5af8a78779bc9matthew_swiftdownload: TARGET = download
950dae14045dfafef39e115efea5af8a78779bc9matthew_swiftprep: TARGET = prep
950dae14045dfafef39e115efea5af8a78779bc9matthew_swiftbuild: TARGET = build
950dae14045dfafef39e115efea5af8a78779bc9matthew_swiftinstall: TARGET = install
950dae14045dfafef39e115efea5af8a78779bc9matthew_swiftpublish: TARGET = publish
950dae14045dfafef39e115efea5af8a78779bc9matthew_swiftvalidate: TARGET = validate
950dae14045dfafef39e115efea5af8a78779bc9matthew_swiftclean: TARGET = clean
950dae14045dfafef39e115efea5af8a78779bc9matthew_swiftclobber: TARGET = clobber
950dae14045dfafef39e115efea5af8a78779bc9matthew_swiftprep build install publish: LOG = >$(WS_LOGS)/$(TARGET):$@.log 2>&1
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift.DEFAULT: publish
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift.PARALLEL: $(COMPONENT_DIRS)
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift
950dae14045dfafef39e115efea5af8a78779bc9matthew_swiftdownload prep build install publish validate: setup $(COMPONENT_DIRS)
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift
950dae14045dfafef39e115efea5af8a78779bc9matthew_swiftclean clobber: $(COMPONENT_DIRS)
950dae14045dfafef39e115efea5af8a78779bc9matthew_swiftifeq ($(findstring file://, $(PKG_REPO)),file://)
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift $(RM) -r $(PKG_REPO:file://%=%) $(WS_LOGS)
950dae14045dfafef39e115efea5af8a78779bc9matthew_swiftendif
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift
950dae14045dfafef39e115efea5af8a78779bc9matthew_swiftsetup: $(WS_LOGS) repo tools
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift$(WS_LOGS):
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift $(MKDIR) $@
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift
950dae14045dfafef39e115efea5af8a78779bc9matthew_swiftrepo:
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift $(PKGSEND) -s $(PKG_REPO) create-repository \
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift --set-property publisher.prefix=$(PUBLISHER)
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift
950dae14045dfafef39e115efea5af8a78779bc9matthew_swifttools:
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift @cd ../tools ; echo "building tools..." ; $(GMAKE) setup
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift$(COMPONENT_DIRS): FORCE
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift @cd $@ ; echo "$(TARGET) \c" ; pwd ; \
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift $(GMAKE) $(TARGET) $(LOG)
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift
950dae14045dfafef39e115efea5af8a78779bc9matthew_swiftFORCE:
950dae14045dfafef39e115efea5af8a78779bc9matthew_swift