diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-06-13 21:47:45 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-06-13 21:47:45 +0200 |
commit | ba3d18a3dc7031c9c5f72685e0b6c97a7900680c (patch) | |
tree | c38474ffd33a15a3ecae2820801eec47639269dc /package/Makefile | |
parent | 4d163860e1f5484d99d498439f6d531993d3d38c (diff) |
reduce rebuild time, remove non-performant rebuild targets
Diffstat (limited to 'package/Makefile')
-rw-r--r-- | package/Makefile | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/package/Makefile b/package/Makefile index c2b7d5285..71fef58d1 100644 --- a/package/Makefile +++ b/package/Makefile @@ -25,21 +25,19 @@ package-$(ADK_PACKAGE_LIBPTHREAD) += libpthread 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)) +COMPILE_PACKAGES:=$(patsubst %,%-compile,$(package-y)) HOST_COMPILE_PACKAGES:=$(patsubst %,%-host-compile,$(hostpackage-y)) INSTALL_PACKAGES:=$(patsubst %,%-install,$(package-y)) all: compile -download: $(DOWNLOAD) -clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m) base-files) +download: $(patsubst %,%-download,$(package-y)) +clean: $(patsubst %,%-clean,$(package-) $(package-y) base-files) hostcompile: $(HOST_COMPILE_PACKAGES) ifeq ($(ADK_TOOLCHAIN_ONLY),y) -compile: $(REBUILD_PACKAGES) $(COMPILE_PACKAGES) +compile: $(COMPILE_PACKAGES) install: $(INSTALL_PACKAGES) else -compile: $(REBUILD_PACKAGES) base-files-compile $(COMPILE_PACKAGES) +compile: base-files-compile $(COMPILE_PACKAGES) install: base-files-install $(INSTALL_PACKAGES) endif @@ -57,16 +55,14 @@ endif %-compile: $(START_TRACE) "package/$(patsubst %-compile,%,$@)-compile: " + if test -f $(TOPDIR)/.rebuild.$(patsubst %-compile,%,$@); then \ + $(MAKE) -C $(patsubst %-compile,%,$@) clean ; \ + rm $(TOPDIR)/.rebuild.$(patsubst %-compile,%,$@) ; \ + fi $(MAKE) -C $(patsubst %-compile,%,$@) fake build-all-pkgs $(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 |