Merge "Fix KVM/QEMU plugin bug"
[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 f_onosfwpluginbuild f_ovsnfv-dpdk-pluginbuild f_vsperfpluginbuild f_qemupluginbuild f_ovs-nsh-dpdk-pluginbuild f_bgpvpn-pluginbuild
13 export PLUGINS
14 #NON_8-0_REBASED_PLUGINS = f_bgpvpn-pluginbuild
15
16 # If the BUILD_FUEL_PLUGINS environment variable is set, only build the plugins
17 # indicated therein.
18 # Temporarilu disabling f_repobuild that currently have some issues on
19 # Fuel 8.
20 ifdef BUILD_FUEL_PLUGINS
21 export BUILD_FUEL_PLUGINS
22 SUBDIRS = f_kscfg f_bootstrap f_isolinux f_repobuild $(BUILD_FUEL_PLUGINS)
23 $(warning Overriding plugin build selection to $(BUILD_FUEL_PLUGINS))
24 else
25 SUBDIRS = f_kscfg f_bootstrap f_isolinux f_repobuild $(PLUGINS)
26 endif
27 SUBCLEAN = $(addsuffix .clean,$(SUBDIRS))
28
29 .PHONY: all
30 all:    $(SUBDIRS)
31
32 .PHONY: $(SUBDIRS)
33 $(SUBDIRS):
34         @mkdir -p release
35         $(MAKE) -C $@ -f Makefile release
36
37 .PHONY: clean $(SUBCLEAN)
38 clean: $(SUBCLEAN)
39         @rm -Rf release
40
41 $(SUBCLEAN): %.clean:
42         $(MAKE) -C $* -f Makefile clean
43
44 .PHONY: release
45 release: $(SUBDIRS)
46         @cp -Rvp release/* ../release/isoroot
47
48 include cache.mk