Merge "ci, build/f_repos: Minor UX improvements"
[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: isolinux.cfg.iso
15         @mkdir -p release/isolinux
16         grep -q OpenStack_Fuel isolinux.cfg.iso
17         sed "s/OpenStack_Fuel/$(PRODNO)_$(REVSTATE)/g" isolinux.cfg.iso > isolinux.cfg
18         @cp isolinux.cfg release/isolinux/isolinux.cfg
19         @cp isolinux.cfg.iso release/isolinux/isolinux.cfg.orig
20
21 isolinux.cfg.iso:
22         7z -so x $(ISOCACHE) isolinux/isolinux.cfg > isolinux.cfg.iso
23
24 .PHONY: clean
25 clean:
26         @rm -rf release isolinux.cfg.iso isolinux.cfg
27
28 .PHONY: release
29 release: all
30         @cp -Rvp release/* ../release
31
32 #############################################################################
33 # Cache operations - only used when building through ci/build.sh
34 #############################################################################
35
36 # Clean local data related to caching - called prior to ordinary build
37 .PHONY: clean-cache
38 clean-cache: clean
39         @echo "clean-cache not implemented"
40
41 # Try to download cache - called prior to ordinary build
42 .PHONY: get-cache
43 get-cache:
44         @echo "get-cache not implemented"
45
46 # Store cache if not already stored - called after ordinary build
47 .PHONY: put-cache
48 put-cache:
49         @echo "put-cache not implemented"