aboutsummaryrefslogtreecommitdiffstats
path: root/build/f_isoroot/cache.mk
blob: 2df3b6bd103c3de18382bc5707df4f7d87ce7ee8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
##############################################################################
# stefan.k.berg@ericsson.com
# jonas.bjurel@ericsson.com
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################

#############################################################################
# Cache operations - only used when building through ci/build.sh
#
# This file is only meant for a top Makefile which is only calling its
# own SUBDIRS, without building any cachable artifact by itself.
#############################################################################

# Call sub caches
SUBGETCACHE = $(addsuffix .getcache,$(SUBDIRS))
$(SUBGETCACHE): %.getcache:
	$(MAKE) -C $* -f Makefile get-cache

SUBPUTCACHE = $(addsuffix .putcache,$(SUBDIRS))
$(SUBPUTCACHE): %.putcache:
	$(MAKE) -C $* -f Makefile put-cache

SUBCLEANCACHE = $(addsuffix .cleancache,$(SUBDIRS))
$(SUBCLEANCACHE): %.cleancache:
	$(MAKE) -C $* -f Makefile clean-cache

.PHONY: get-cache
get-cache: $(SUBGETCACHE)

.PHONY: put-cache
put-cache: $(SUBPUTCACHE)

.PHONY: clean-cache
clean-cache: $(SUBCLEANCACHE)