Makefile.vm (b5ff185e19f6013ca565b2a15bc2d6abce933f46) Makefile.vm (34187a086a66ef1edd98444361aaea274eda9277)
1#
2# $FreeBSD$
3#
4#
5# Makefile for building virtual machine and cloud provider disk images.
6#
7
8VMTARGETS= vm-image

--- 54 unchanged lines hidden (view full) ---

63 -i ${.OBJDIR}/${_CW:tl}.img -s ${VMSIZE} -f ${${_CW}_FORMAT} \
64 -S ${WORLDDIR} -o ${.OBJDIR}/${${_CW}IMAGE} -c ${${_CW}CONF}
65 touch ${.TARGET}
66
67cw${_CW:tl}-install:
68 mkdir -p ${DESTDIR}/${_CW:tl}
69 cp -p ${${_CW}IMAGE} \
70 ${DESTDIR}/${_CW:tl}/${${_CW}_DISK}
1#
2# $FreeBSD$
3#
4#
5# Makefile for building virtual machine and cloud provider disk images.
6#
7
8VMTARGETS= vm-image

--- 54 unchanged lines hidden (view full) ---

63 -i ${.OBJDIR}/${_CW:tl}.img -s ${VMSIZE} -f ${${_CW}_FORMAT} \
64 -S ${WORLDDIR} -o ${.OBJDIR}/${${_CW}IMAGE} -c ${${_CW}CONF}
65 touch ${.TARGET}
66
67cw${_CW:tl}-install:
68 mkdir -p ${DESTDIR}/${_CW:tl}
69 cp -p ${${_CW}IMAGE} \
70 ${DESTDIR}/${_CW:tl}/${${_CW}_DISK}
71 cd ${DESTDIR}/${_CW:tl} && sha512 ${${_CW}_DISK}* > \
72 ${DESTDIR}/${_CW:tl}/CHECKSUM.SHA512
71 cd ${DESTDIR}/${_CW:tl} && sha256 ${${_CW}_DISK}* > \
72 ${DESTDIR}/${_CW:tl}/CHECKSUM.SHA256
73 cd ${DESTDIR}/${_CW:tl} && sha256 ${${_CW}_DISK}* > \
74 ${DESTDIR}/${_CW:tl}/CHECKSUM.SHA256
73 cd ${DESTDIR}/${_CW:tl} && md5 ${${_CW}_DISK}* > \
74 ${DESTDIR}/${_CW:tl}/CHECKSUM.MD5
75
76cw${_CW:tl}-package:
77 @# Special target to handle packaging cloud images in the formats
78 @# specific to each hosting provider.
79.if exists(${.CURDIR}/tools/${_CW:tl}-package.sh)
80 env TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
81 ${.CURDIR}/tools/${_CW:tl}-package.sh \
82 -D ${DESTDIR} -I ${${_CW}_DISK} -S ${WORLDDIR}

--- 52 unchanged lines hidden (view full) ---

135 ${DESTDIR}/vmimages/${OSRELEASE}.${FORMAT}
136. endfor
137. if defined(WITH_COMPRESSED_VMIMAGES) && !empty(WITH_COMPRESSED_VMIMAGES)
138. for FORMAT in ${VMFORMATS}
139 # Don't keep the originals. There is a copy in ${.OBJDIR} if needed.
140 ${XZ_CMD} ${DESTDIR}/vmimages/${OSRELEASE}.${FORMAT}
141. endfor
142. endif
75
76cw${_CW:tl}-package:
77 @# Special target to handle packaging cloud images in the formats
78 @# specific to each hosting provider.
79.if exists(${.CURDIR}/tools/${_CW:tl}-package.sh)
80 env TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
81 ${.CURDIR}/tools/${_CW:tl}-package.sh \
82 -D ${DESTDIR} -I ${${_CW}_DISK} -S ${WORLDDIR}

--- 52 unchanged lines hidden (view full) ---

135 ${DESTDIR}/vmimages/${OSRELEASE}.${FORMAT}
136. endfor
137. if defined(WITH_COMPRESSED_VMIMAGES) && !empty(WITH_COMPRESSED_VMIMAGES)
138. for FORMAT in ${VMFORMATS}
139 # Don't keep the originals. There is a copy in ${.OBJDIR} if needed.
140 ${XZ_CMD} ${DESTDIR}/vmimages/${OSRELEASE}.${FORMAT}
141. endfor
142. endif
143 cd ${DESTDIR}/vmimages && sha512 ${OSRELEASE}* > \
144 ${DESTDIR}/vmimages/CHECKSUM.SHA512
143 cd ${DESTDIR}/vmimages && sha256 ${OSRELEASE}* > \
144 ${DESTDIR}/vmimages/CHECKSUM.SHA256
145 cd ${DESTDIR}/vmimages && sha256 ${OSRELEASE}* > \
146 ${DESTDIR}/vmimages/CHECKSUM.SHA256
145 cd ${DESTDIR}/vmimages && md5 ${OSRELEASE}* > \
146 ${DESTDIR}/vmimages/CHECKSUM.MD5
147.endif
148
149vm-release:
150.if defined(WITH_VMIMAGES) && !empty(WITH_VMIMAGES)
151 ${MAKE} -C ${.CURDIR} ${.MAKEFLAGS} ${VMTARGETS}
152.endif
153
154cloudware-release:

--- 13 unchanged lines hidden ---
147.endif
148
149vm-release:
150.if defined(WITH_VMIMAGES) && !empty(WITH_VMIMAGES)
151 ${MAKE} -C ${.CURDIR} ${.MAKEFLAGS} ${VMTARGETS}
152.endif
153
154cloudware-release:

--- 13 unchanged lines hidden ---