Merge "Update for fuel10 onos plugin"
[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_ovs-nsh-dpdk-pluginbuild f_vsperfpluginbuild f_kvm-pluginbuild f_yardstick-pluginbuild f_collectd-ceilometer-pluginbuild f_congress-pluginbuild f_odlpluginbuild f_bgpvpn-pluginbuild f_tacker-pluginbuild f_onosfwpluginbuild
13 export PLUGINS
14
15
16 # If the BUILD_FUEL_PLUGINS environment variable is set, only build the plugins
17 # indicated therein.
18 ifdef BUILD_FUEL_PLUGINS
19 export BUILD_FUEL_PLUGINS
20 SUBDIRS = f_kscfg f_bootstrap f_isolinux f_repobuild $(BUILD_FUEL_PLUGINS)
21 $(warning Overriding plugin build selection to $(BUILD_FUEL_PLUGINS))
22 else
23 SUBDIRS = f_kscfg f_bootstrap f_isolinux f_repobuild $(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