blob: f9fcfcc5758454f603bbc76d6d7c3753a9a6a672 [file] [log] [blame]
# Copyright (c) 2011 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
SUBDIRS =
SUBDIRS_INSTALL =
XML_SRC = $(notdir $(wildcard $(HDCTOOLS_SOURCE_DIR)/*.xml))
XML_DST = $(addprefix $(THIS_BUILD_DIR)/,$(XML_SRC))
INAS = wario.xml waluigi.xml servo_loc.xml link_dvt.xml link.xml \
snow.xml daisy.xml mccroskey.xml spring_v0_r0.xml spring.xml \
pi.xml pit.xml falco.xml peppy.xml rambi.xml nyan.xml samus.xml \
rambi_1v5_r0_loc.xml rambi_2v0_r0_loc.xml
# TODO(tbroch) should probably be added to setup.py if possible
all: $(INAS) $(XML_DST)
$(THIS_BUILD_DIR)/%.xml: $(HDCTOOLS_SOURCE_DIR)/%.xml
$(MESSAGE) "Copying $(notdir $@)"
$(CP) $< $@
$(INAS): %.xml:%.py
$(MESSAGE) "Building $@"
python -B "$(HDCTOOLS_SOURCE_DIR)/ina219.py" $(basename $(<F))
install: # NOP