1N/A#
1N/A# CDDL HEADER START
1N/A#
1N/A# The contents of this file are subject to the terms of the
1N/A# Common Development and Distribution License (the "License").
1N/A# You may not use this file except in compliance with the License.
1N/A#
1N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1N/A# or http://www.opensolaris.org/os/licensing.
1N/A# See the License for the specific language governing permissions
1N/A# and limitations under the License.
1N/A#
1N/A# When distributing Covered Code, include this CDDL HEADER in each
1N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1N/A# If applicable, add the following below this CDDL HEADER, with the
1N/A# fields enclosed by brackets "[]" replaced with your own identifying
1N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1N/A#
1N/A# CDDL HEADER END
1N/A#
1N/A#
1N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
1N/A# Use is subject to license terms.
1N/A#
1N/A
1N/Ainclude ../Makefile.cmd
1N/Ainclude Makefile.hal
1N/A
1N/ASUBDIRS1 = hald hald-runner addons probing tools
1N/ASUBDIRS2 = fdi
1N/ASUBDIRS = $(SUBDIRS1) $(SUBDIRS2)
1N/A
1N/AHAL_CONF = hal.conf
1N/AROOT_DBUS_CONF_DIR = $(ROOT)/etc/dbus-1/system.d
1N/AROOT_HAL_CONF = $(HAL_CONF:%=$(ROOT_DBUS_CONF_DIR)/%)
1N/A
1N/ACLOBBERFILES += $(HAL_CONF)
1N/A
1N/Aall := TARGET= all
1N/Ainstall := TARGET= install
1N/Aclean := TARGET= clean
1N/Aclobber := TARGET= clobber
1N/A
1N/A$(ROOT_HAL_CONF) := FILEMODE = 644
1N/A
1N/A.KEEP_STATE:
1N/A
1N/Aall: $(SUBDIRS) $(HAL_CONF)
1N/A
1N/Aclean: $(SUBDIRS)
1N/A
1N/Ainstall: $(SUBDIRS) $(ROOT_HAL_CONF)
1N/A
1N/A$(ROOT_DBUS_CONF_DIR):
1N/A $(INS.dir)
1N/A
1N/A$(ROOT_HAL_CONF): $(ROOT_DBUS_CONF_DIR) $(HAL_CONF)
1N/A $(INS.file) $(HAL_CONF)
1N/A
1N/A$(HAL_CONF): $(HAL_CONF).in
1N/A $(SED) -e "s@\@HAL_USER\@@$(HAL_USER)@" \
1N/A < $(HAL_CONF).in > $(HAL_CONF)
1N/A
1N/A$(SUBDIRS): FRC
1N/A @cd $@; pwd; $(MAKE) $(TARGET)
1N/A
1N/AFRC:
1N/A
1N/Ainclude ../Makefile.targ
1N/A