Merge "Change the way how we track deployment" into stable/colorado
[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 disabled for the Fuel Mitaka uplift. Please re-enable your plugin as you have
13 # verified it!
14 PLUGINS ?= f_odlpluginbuild f_onosfwpluginbuild f_vsperfpluginbuild f_ovs-nsh-dpdk-pluginbuild f_yardstick-pluginbuild f_kvm-pluginbuild f_bgpvpn-pluginbuild f_collectd-ceilometer-pluginbuild f_tacker-pluginbuild
15 #PLUGINS = f_odlpluginbuild f_onosfwpluginbuild f_ovsnfv-dpdk-pluginbuild f_vsperfpluginbuild f_ovs-nsh-dpdk-pluginbuild f_bgpvpn-pluginbuild
16 export PLUGINS
17 #NON_8-0_REBASED_PLUGINS = f_bgpvpn-pluginbuild
18
19 # If the BUILD_FUEL_PLUGINS environment variable is set, only build the plugins
20 # indicated therein.
21 # Temporarilu disabling f_repobuild that currently have some issues on
22 # Fuel Mitaka.
23 ifdef BUILD_FUEL_PLUGINS
24 export BUILD_FUEL_PLUGINS
25 SUBDIRS = f_kscfg f_bootstrap f_isolinux f_repobuild $(BUILD_FUEL_PLUGINS)
26 $(warning Overriding plugin build selection to $(BUILD_FUEL_PLUGINS))
27 else
28 SUBDIRS = f_kscfg f_bootstrap f_isolinux f_repobuild $(PLUGINS)
29 endif
30 SUBCLEAN = $(addsuffix .clean,$(SUBDIRS))
31
32 .PHONY: all
33 all:    $(SUBDIRS)
34
35 .PHONY: $(SUBDIRS)
36 $(SUBDIRS):
37         @mkdir -p release
38         $(MAKE) -C $@ -f Makefile release
39
40 .PHONY: clean $(SUBCLEAN)
41 clean: $(SUBCLEAN)
42         @rm -Rf release
43
44 $(SUBCLEAN): %.clean:
45         $(MAKE) -C $* -f Makefile clean
46
47 .PHONY: release
48 release: $(SUBDIRS)
49         @cp -Rvp release/* ../release/isoroot
50
51 include cache.mk