1# $FreeBSD: head/release/Makefile 264027 2014-04-01 22:41:26Z gjb $ |
2# 3# Makefile for building releases and release media. 4# 5# User-driven targets: 6# cdrom: Builds release CD-ROM media (disc1.iso) 7# dvdrom: Builds release DVD-ROM media (dvd1.iso) 8# memstick: Builds memory stick image (memstick.img) 9# mini-memstick: Builds minimal memory stick image (mini-memstick.img) --- 6 unchanged lines hidden (view full) --- 16# (by default, the directory above this one) 17# PORTSDIR: location of ports tree to distribute (default: /usr/ports) 18# DOCDIR: location of doc tree (default: /usr/doc) 19# NOPKG: if set, do not distribute third-party packages 20# NOPORTS: if set, do not distribute ports tree 21# NOSRC: if set, do not distribute source tree 22# NODOC: if set, do not generate release documentation 23# WITH_DVD: if set, generate dvd1.iso |
24# WITH_COMPRESSED_IMAGES: if set, compress installation images with gzip(1) 25# (uncompressed images are not removed) |
26# TARGET/TARGET_ARCH: architecture of built release 27# 28 29WORLDDIR?= ${.CURDIR}/.. 30PORTSDIR?= /usr/ports 31DOCDIR?= /usr/doc 32RELNOTES_LANG?= en_US.ISO8859-1 33 --- 214 unchanged lines hidden (view full) --- 248 249install: 250.if defined(DESTDIR) && !empty(DESTDIR) 251 mkdir -p ${DESTDIR} 252.endif 253 cp -a ftp ${DESTDIR}/ 254.for I in ${IMAGES} 255 cp -p ${I} ${DESTDIR}/${OSRELEASE}-${I} |
256. if defined(WITH_COMPRESSED_IMAGES) || !empty(WITH_COMPRESSED_IMAGES) 257 gzip -k ${DESTDIR}/${OSRELEASE}-${I} 258. endif |
259.endfor 260 cd ${DESTDIR} && sha256 ${OSRELEASE}* > ${DESTDIR}/CHECKSUM.SHA256 261 cd ${DESTDIR} && md5 ${OSRELEASE}* > ${DESTDIR}/CHECKSUM.MD5 |