# Copyright 2012-2017 Intel Corporation.
# 
# This software is supplied under the terms of a license agreement or
# nondisclosure agreement with Intel Corporation and may not be copied
# or disclosed except in accordance with the terms of that agreement.

TOPDIR := $(CURDIR)

HOST_CLOSE_DELIVERABLES =  apps/sysdiag apps/sysdiag/tools/cpu-info
HOST_DELIVERABLES = $(HOST_CLOSE_DELIVERABLES)
DELIVERABLES = $(HOST_DELIVERABLES)
COMPONENTS = $(DELIVERABLES)

all: $(addsuffix _all, $(HOST_DELIVERABLES))
close: $(addsuffix _all, $(HOST_CLOSE_DELIVERABLES))
test: $(addsuffix _test, $(HOST_CLOSE_DELIVERABLES))

install: $(addsuffix _install, $(HOST_DELIVERABLES))
close_install: $(addsuffix _install, $(HOST_CLOSE_DELIVERABLES))

SUBMAKE = +$(MAKE) TOPDIR=$(TOPDIR) -C $* proj_target=$(proj_target)

%_all:
	$(SUBMAKE) all

%_test:
	$(SUBMAKE) test


%_install: %_all
	$(SUBMAKE) install

%_clean:
	$(SUBMAKE) clean

.PHONY: all install close close_install
