Use e1000 network driver in virtual labs
[fuel.git] / build / f_isoroot / cache.mk
1 ##############################################################################
2 # stefan.k.berg@ericsson.com
3 # jonas.bjurel@ericsson.com
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9
10 #############################################################################
11 # Cache operations - only used when building through ci/build.sh
12 #
13 # This file is only meant for a top Makefile which is only calling its
14 # own SUBDIRS, without building any cachable artifact by itself.
15 #############################################################################
16
17 # Call sub caches
18 SUBGETCACHE = $(addsuffix .getcache,$(SUBDIRS))
19 $(SUBGETCACHE): %.getcache:
20         $(MAKE) -C $* -f Makefile get-cache
21
22 SUBPUTCACHE = $(addsuffix .putcache,$(SUBDIRS))
23 $(SUBPUTCACHE): %.putcache:
24         $(MAKE) -C $* -f Makefile put-cache
25
26 SUBCLEANCACHE = $(addsuffix .cleancache,$(SUBDIRS))
27 $(SUBCLEANCACHE): %.cleancache:
28         $(MAKE) -C $* -f Makefile clean-cache
29
30 .PHONY: get-cache
31 get-cache: $(SUBGETCACHE)
32
33 .PHONY: put-cache
34 put-cache: $(SUBPUTCACHE)
35
36 .PHONY: clean-cache
37 clean-cache: $(SUBCLEANCACHE)