Merge "Use e1000 network driver in virtual labs" into stable/brahmaputra
[fuel.git] / build / f_isoroot / Makefile
1 ##############################################################################
2 # Copyright (c) 2015 Ericsson AB and others.
3 # stefan.k.berg@ericsson.com
4 # jonas.bjurel@ericsson.com
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
10
11 # Add Fuel plugin build targets here
12 PLUGINS = f_odlpluginbuild
13 #NON_8-0_REBASED_PLUGINS = f_qemupluginbuild f_ovs-nsh-dpdk-pluginbuild f_onosfwpluginbuild f_bgpvpn-pluginbuild f_ovsnfv-dpdk-pluginbuild f_vsperfpluginbuild
14
15 # If the BUILD_FUEL_PLUGINS environment variable is set, only build the plugins
16 # indicated therein.
17 ifdef BUILD_FUEL_PLUGINS
18 #SUBDIRS = f_kscfg f_bootstrap f_isolinux f_repobuild $(BUILD_FUEL_PLUGINS)
19 SUBDIRS = f_kscfg f_bootstrap f_isolinux $(BUILD_FUEL_PLUGINS)
20 $(warning Overriding plugin build selection to $(BUILD_FUEL_PLUGINS))
21 else
22 #SUBDIRS = f_kscfg f_bootstrap f_isolinux f_repobuild $(PLUGINS)
23 SUBDIRS = f_kscfg f_bootstrap f_isolinux $(PLUGINS)
24 endif
25 SUBCLEAN = $(addsuffix .clean,$(SUBDIRS))
26
27 .PHONY: all
28 all:    $(SUBDIRS)
29
30 .PHONY: $(SUBDIRS)
31 $(SUBDIRS):
32         @mkdir -p release
33         $(MAKE) -C $@ -f Makefile release
34
35 .PHONY: clean $(SUBCLEAN)
36 clean: $(SUBCLEAN)
37         @rm -Rf release
38
39 $(SUBCLEAN): %.clean:
40         $(MAKE) -C $* -f Makefile clean
41
42 .PHONY: release
43 release: $(SUBDIRS)
44         @cp -Rvp release/* ../release/isoroot
45
46 include cache.mk