| # Copyright 2012 The Chromium OS Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| include $(HDCTOOLS_DIR)/defs/definitions.mk |
| |
| INITDIR = /etc/init |
| INIT_DEST = $(DESTDIR)$(INITDIR) |
| |
| SERVOD_CONF = servod.conf |
| UPSTART_SRC = $(HDCTOOLS_SOURCE_DIR)/$(SERVOD_CONF) |
| UPSTART_DST = $(THIS_BUILD_DIR)/$(SERVOD_CONF) |
| |
| $(UPSTART_DST): $(UPSTART_SRC) |
| $(MESSAGE) "Copying $(notdir $@)" |
| $(CP) $< $@ |
| |
| all: $(UPSTART_DST) |
| |
| install: |
| $(MESSAGE) "Installing '$(SERVOD_CONF)' to $(INIT_DEST)" |
| $(CP) $(SERVOD_CONF) "$(INIT_DEST)" |