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