Merge "Templates for configuration guide" into stable/brahmaputra
[fuel.git] / build / f_isoroot / f_isolinux / Makefile
1 ##############################################################################
2 # Copyright (c) 2016 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 TOP := $(shell pwd)
12
13 .PHONY: all
14 all:
15         @mkdir -p release/isolinux
16         grep -q OpenStack_Fuel isolinux.cfg
17         sed "s/OpenStack_Fuel/$(PRODNO)_$(REVSTATE)/g" isolinux.cfg > isolinux.cfg.patched
18         @cp isolinux.cfg.patched release/isolinux/isolinux.cfg
19         @cp isolinux.cfg.orig release/isolinux/
20
21 .PHONY: clean
22 clean:
23         @rm -rf release isolinux.cfg.patched
24
25 .PHONY: release
26 release: all
27         @cp -Rvp release/* ../release
28
29 #############################################################################
30 # Cache operations - only used when building through ci/build.sh
31 #############################################################################
32
33 # Clean local data related to caching - called prior to ordinary build
34 .PHONY: clean-cache
35 clean-cache: clean
36         @echo "clean-cache not implemented"
37
38 # Try to download cache - called prior to ordinary build
39 .PHONY: get-cache
40 get-cache:
41         @echo "get-cache not implemented"
42
43 # Store cache if not already stored - called after ordinary build
44 .PHONY: put-cache
45 put-cache:
46         @echo "put-cache not implemented"