summaryrefslogtreecommitdiff
path: root/package/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-09-15 20:54:15 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-09-15 20:54:15 +0200
commit4422cda575db22275b067e07ad4b585572d91756 (patch)
tree04557c9f49a6088540cdedc7c68e04dd61132531 /package/Makefile
parent30fc540d30f82c534a3bdfff265f8b62cb770551 (diff)
rebuild packages on flavour or choices change
add new target rebuild. make cpio and pacch quiet. Use bin/tools for cpio and mkcrypt.
Diffstat (limited to 'package/Makefile')
-rw-r--r--package/Makefile11
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