Skip to content

Commit

Permalink
build: add ISO building target
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasT committed Feb 12, 2019
1 parent 9d5f337 commit a810e9a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ MAKEFLAGS += -r
.SUFFIXES:

VERSION ?= 2.0
FULL_VERSION ?= 2.0.0-dev

PWD := $(shell pwd)

BUILD_ROOT ?= $(PWD)/_build
ISO_ROOT ?= $(BUILD_ROOT)/root
ISO ?= $(BUILD_ROOT)/metalk8s.iso

ALL = \
$(ISO_ROOT)/bootstrap.sh \
Expand Down Expand Up @@ -68,3 +70,22 @@ $(ISO_ROOT)/pillar/%: pillar/%
clean:
rm -rf $(BUILD_ROOT)
.PHONY: clean

iso: $(ISO)
.PHONY: iso

$(ISO): all
mkisofs -output $@ \
-rock \
-joliet \
-joliet-long \
-full-iso9660-filenames \
-volid 'MetalK8s $(FULL_VERSION)' \
--iso-level 3 \
-gid 0 \
-uid 0 \
-input-charset utf-8 \
-output-charset utf-8 \
-checksum_algorithm_iso md5,sha1,sha256,sha512 \
$(ISO_ROOT)
.PHONY: $(ISO)

0 comments on commit a810e9a

Please sign in to comment.