Merge "All plug-ins except those explicitly rebased are disabled"
[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 # Temporarilu disabling f_repobuild that currently have some issues on
18 # Fuel 8.
19 ifdef BUILD_FUEL_PLUGINS
20 #SUBDIRS = f_kscfg f_bootstrap f_isolinux f_repobuild $(BUILD_FUEL_PLUGINS)
21 SUBDIRS = f_kscfg f_bootstrap f_isolinux $(BUILD_FUEL_PLUGINS)
22 $(warning Overriding plugin build selection to $(BUILD_FUEL_PLUGINS))
23 else
24 #SUBDIRS = f_kscfg f_bootstrap f_isolinux f_repobuild $(PLUGINS)
25 SUBDIRS = f_kscfg f_bootstrap f_isolinux $(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