diff options
Diffstat (limited to 'package/Makefile')
-rw-r--r-- | package/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/package/Makefile b/package/Makefile index d9a015494..e271216dd 100644 --- a/package/Makefile +++ b/package/Makefile @@ -28,6 +28,7 @@ endif include $(TOPDIR)/package/Depends.mk DOWNLOAD:=$(patsubst %,%-download,$(package-y) $(package-m)) +REBUILD_PACKAGES:=$(patsubst %,%-rebuild,$(package-y) $(package-m)) COMPILE_PACKAGES:=$(patsubst %,%-compile,$(package-y) $(package-m)) INSTALL_PACKAGES:=$(patsubst %,%-install,$(package-y)) @@ -35,10 +36,10 @@ all: compile download: $(DOWNLOAD) clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m) base-files) ifeq ($(ADK_TOOLCHAIN_ONLY),y) -compile: $(COMPILE_PACKAGES) +compile: $(REBUILD_PACKAGES) $(COMPILE_PACKAGES) install: $(INSTALL_PACKAGES) else -compile: base-files-compile $(COMPILE_PACKAGES) +compile: base-files-compile $(REBUILD_PACKAGES) $(COMPILE_PACKAGES) install: base-files-install $(INSTALL_PACKAGES) endif @@ -57,6 +58,12 @@ $(TARGET_DIR): $(CMD_TRACE) " done" $(END_TRACE) +%-rebuild: + $(START_TRACE) "package/$(patsubst %-rebuild,%,$@)-rebuild: " + $(MAKE) -C $(patsubst %-rebuild,%,$@) rebuild + $(CMD_TRACE) " done" + $(END_TRACE) + %-install: @$(START_TRACE) "package/$(patsubst %-install,%,$@)-install: " @$(MAKE) -C $(patsubst %-install,%,$@) install |