From d2c5a1dde91d10b4f3f9f5ac0b1570527247e03c Mon Sep 17 00:00:00 2001 From: "Stefan K. Berg" Date: Sat, 23 Jan 2016 20:56:48 +0100 Subject: Cache as we go instead of in the end In order to speed up the build process when building with the cache enabled, cache immediately following the build of a sub artifact instead of at the end. Should the build fail, we don't need to rebuild those parts that already were successful in the last build. Change-Id: I23b59f7ba4a04272aea855cf451793158fe12241 Signed-off-by: Stefan K. Berg --- build/f_isoroot/f_bgpvpn-pluginbuild/Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'build/f_isoroot/f_bgpvpn-pluginbuild') diff --git a/build/f_isoroot/f_bgpvpn-pluginbuild/Makefile b/build/f_isoroot/f_bgpvpn-pluginbuild/Makefile index a99a426b6..71f2771a5 100644 --- a/build/f_isoroot/f_bgpvpn-pluginbuild/Makefile +++ b/build/f_isoroot/f_bgpvpn-pluginbuild/Makefile @@ -51,6 +51,9 @@ release:.bgpvpnbuild $(REPOINFO) -r . > gitinfo_bgpvpnplugin.txt rm -rf fuel-plugin-bgpvpn touch .bgpvpnbuild + # Store artifact in cache straight away if caching is enabled + # (no .cacheid will be present unless this is a cached build) + test -f .cacheid && $(MAKE) -f Makefile put-cache || exit 0 ############################################################################# # Cache operations - only used when building through ci/build.sh -- cgit 1.2.3-korg