f_repobuild: Use packetary to build partial mirror
[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 Newton uplift. Please re-enable your plugin as you have
13 # verified it!
14 PLUGINS ?= f_ovs-nsh-dpdk-pluginbuild f_vsperfpluginbuild f_kvm-pluginbuild f_yardstick-pluginbuild f_collectd-ceilometer-pluginbuild f_congress-pluginbuild
15 export PLUGINS
16 NON_10-0_REBASED_PLUGINS = f_odlpluginbuild f_onosfwpluginbuild f_ovsnfv-dpdk-pluginbuild f_vsperfpluginbuild f_bgpvpn-pluginbuild
17
18 # If the BUILD_FUEL_PLUGINS environment variable is set, only build the plugins
19 # indicated therein.
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