summaryrefslogtreecommitdiff
path: root/package/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-09-16 13:10:39 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-09-16 13:10:39 +0200
commit9a625cd021c2d087a988699dcfc3e512fa163235 (patch)
tree2fbdefdee370f2cd2c5ee76ec62b9dd9b65cbd9c /package/Makefile
parentafab289b265ff987c3f62393b3ef707c2650704f (diff)
parent4422cda575db22275b067e07ad4b585572d91756 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Conflicts: mk/kernel-build.mk package/expat/Makefile package/gettext/Makefile package/perl/Makefile package/zlib/Makefile
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