mirror of
https://github.com/immortalwrt/immortalwrt.git
synced 2025-08-07 22:06:25 +08:00
build: define common subdir targets in rules.mk
Reduce build system clutter and enable further rework Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user