usr/src/lib/install_target/Makefile
author Ethan Quach <Ethan.Quach@sun.com>
Tue, 31 May 2011 14:21:09 -0700
changeset 1160 6f7e708c38ec
parent 1112 6a71a28b230b
child 1407 233016449e4a
permissions -rw-r--r--
16257 Support for zones configuration and installation should be included in AI 7041915 TransferFiles ICT should support transferring a directory that is more than one level deep. 7049824 System installed via AI ends up with incorrect mountpoints for shared ZFS datasets

#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#

#
# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
#

include ../Makefile.lib

SUBDIRS=	libadm \
		libbe \
		libdevinfo \
		libdiskmgt \
		libnvpair \
		shadow

.PARALLEL:	$(SUBDIRS)

all:=		TARGET= all
check:=		TARGET= check
clean:=		TARGET= clean
clobber:=	TARGET= clobber
install:=	TARGET= install
install_h:=	TARGET= install_h
lint:=		TARGET= lint

all check clean clobber install install_h lint: $(SUBDIRS)

PYMODS=		__init__.py \
		cgc.py \
		controller.py \
		discovery.py \
		instantiation.py \
		instantiation_zone.py \
		logical.py \
		physical.py \
		size.py \
		test_td.py \
		vdevs.py

PYCMODS=	$(PYMODS:%.py=%.pyc)
ROOTPYMODS=	$(PYMODS:%=$(ROOTPYTHONVENDORSOLINSTALLTARGET)/%)
ROOTPYCMODS=	$(PYCMODS:%=$(ROOTPYTHONVENDORSOLINSTALLTARGET)/%)

CLOBBERFILES	= $(PYCMODS) 
CLEANFILES	= $(CLOBBERFILES)

%.pyc : %.py
	$(RM) $@
	$(PYTHON) -mpy_compile $<
	@[ $(<)c = $@ ] || $(MV) $(<)c $@

all:	$(SUBDIRS) $(PYCMODS)

$(ROOTPYTHONVENDORSOLINSTALLTARGET) : $(ROOTPYTHONVENDORSOLINSTALL)
$(ROOTPYTHONVENDORSOLINSTALL) : $(ROOTPYTHONVENDOR)

$(ROOTPYMODS)  : $(ROOTPYTHONVENDORSOLINSTALLTARGET)
$(ROOTPYCMODS) : $(ROOTPYTHONVENDORSOLINSTALLTARGET) $(PYCMODS)

install:	all $(ROOTPYMODS) $(ROOTPYCMODS) $(SUBDIRS)

install_h:

$(SUBDIRS):	FRC
	cd $@; pwd; $(MAKE) $(TARGET)
	
FRC:

include ../Makefile.targ