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