generate.mk 290 Bytes
Newer Older
1
ifneq (,$(BUILDDIR))
2 3 4

include $(BUILDDIR)/distcfg.mk

5
# prepare the provided public SSH key to be carried over into the image
6
all: TMPDIR = $(BUILDDIR)/files/tmp
7 8
all:
	@if [ -s "$(SSH_KEY)" ]; then \
9 10
		mkdir -p "$(TMPDIR)"; \
		cp -v "$(SSH_KEY)" "$(TMPDIR)/root_ssh_key.pub"; \
11 12 13
	fi

endif