| # Copyright 2023 The ChromiumOS Authors |
| # 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 = ecusb |
| SUBDIRS_INSTALL = $(foreach var,$(SUBDIRS),$(var)-install) |
| PYTHON_SRC = $(notdir $(wildcard $(HDCTOOLS_SOURCE_DIR)/*.py)) |
| PYTHON_DST = $(addprefix $(THIS_BUILD_DIR)/, $(PYTHON_SRC)) |
| |
| $(THIS_BUILD_DIR)/%.py: $(HDCTOOLS_SOURCE_DIR)/%.py |
| $(MESSAGE) "Copying $(notdir $@)" |
| $(CP) $< $@ |
| |
| all: $(PYTHON_DST) $(SUBDIRS) |
| install: $(SUBDIRS_INSTALL) |
| |
| $(SUBDIRS): |
| @$(call remake,Building,$@,all) |
| |
| $(SUBDIRS_INSTALL): |
| @$(call remake,Installing,$(subst -install,,$@),install) |
| |
| .PHONY: $(SUBDIRS) $(SUBDIRS_INSTALL) |