From 6cf067d084cc551c721e98b6d6c6403a63e521d5 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 18 Jan 2017 14:00:48 +0100 Subject: build: define common subdir targets in rules.mk Reduce build system clutter and enable further rework Signed-off-by: Felix Fietkau --- include/host-build.mk | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'include/host-build.mk') diff --git a/include/host-build.mk b/include/host-build.mk index 6c2f91581b..0bd386781d 100644 --- a/include/host-build.mk +++ b/include/host-build.mk @@ -168,13 +168,11 @@ ifndef DUMP touch $(HOST_STAMP_BUILT) touch $$@ + $(call DefaultTargets,$(patsubst %,host-%,$(DEFAULT_SUBDIR_TARGETS))) ifndef STAMP_BUILT - prepare: host-prepare - compile: host-compile - install: host-install - clean: host-clean - update: host-update - refresh: host-refresh + $(foreach t,$(DEFAULT_SUBDIR_TARGETS), + $(t): host-$(t) + ) endif host-prepare: $(HOST_STAMP_PREPARED) @@ -187,13 +185,6 @@ ifndef DUMP rm -rf $(HOST_BUILD_DIR) $(HOST_STAMP_INSTALLED) $(HOST_STAMP_BUILT) endef - - download: - prepare: - compile: - install: - clean: - endif define HostBuild -- cgit v1.2.3