1# $FreeBSD: head/release/Makefile 262505 2014-02-26 00:52:01Z gjb $
| 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) 10# ftp: Sets up FTP distribution area (ftp) 11# release: Build all media and FTP distribution area 12# install: Copies all release media into ${DESTDIR} 13# 14# Variables affecting the build process: 15# WORLDDIR: location of src tree -- must have built world and default kernel 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
| 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) 10# ftp: Sets up FTP distribution area (ftp) 11# release: Build all media and FTP distribution area 12# install: Copies all release media into ${DESTDIR} 13# 14# Variables affecting the build process: 15# WORLDDIR: location of src tree -- must have built world and default kernel 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)
|
24# TARGET/TARGET_ARCH: architecture of built release 25# 26 27WORLDDIR?= ${.CURDIR}/.. 28PORTSDIR?= /usr/ports 29DOCDIR?= /usr/doc 30RELNOTES_LANG?= en_US.ISO8859-1 31 32.if !defined(TARGET) || empty(TARGET) 33TARGET= ${MACHINE} 34.endif 35.if !defined(TARGET_ARCH) || empty(TARGET_ARCH) 36.if ${TARGET} == ${MACHINE} 37TARGET_ARCH= ${MACHINE_ARCH} 38.else 39TARGET_ARCH= ${TARGET} 40.endif 41.endif 42IMAKE= ${MAKE} TARGET_ARCH=${TARGET_ARCH} TARGET=${TARGET} 43DISTDIR= dist 44 45# Define OSRELEASE by using newvars.sh 46.if !defined(OSRELEASE) || empty(OSRELEASE) 47.for _V in TYPE BRANCH REVISION 48${_V}!= eval $$(awk '/^${_V}=/{print}' ${.CURDIR}/../sys/conf/newvers.sh); echo $$${_V} 49.endfor 50.for _V in ${TARGET_ARCH} 51.if !empty(TARGET:M${_V}) 52OSRELEASE= ${TYPE}-${REVISION}-${BRANCH}-${TARGET} 53.else 54OSRELEASE= ${TYPE}-${REVISION}-${BRANCH}-${TARGET}-${TARGET_ARCH} 55.endif 56.endfor 57.endif 58 59.if !exists(${DOCDIR}) 60NODOC= true 61.endif 62.if !exists(${PORTSDIR}) 63NOPORTS= true 64.endif 65 66EXTRA_PACKAGES= 67.if !defined(NOPORTS) 68EXTRA_PACKAGES+= ports.txz 69.endif 70.if !defined(NOSRC) 71EXTRA_PACKAGES+= src.txz 72.endif 73.if !defined(NODOC) 74EXTRA_PACKAGES+= reldoc 75.endif 76 77RELEASE_TARGETS= ftp 78IMAGES= 79.if exists(${.CURDIR}/${TARGET}/mkisoimages.sh) 80RELEASE_TARGETS+= cdrom 81IMAGES+= disc1.iso bootonly.iso 82. if defined(WITH_DVD) && !empty(WITH_DVD) 83RELEASE_TARGETS+= dvdrom 84IMAGES+= dvd1.iso 85. endif 86.endif 87.if exists(${.CURDIR}/${TARGET}/make-memstick.sh) 88RELEASE_TARGETS+= memstick.img 89RELEASE_TARGETS+= mini-memstick.img 90IMAGES+= memstick.img 91IMAGES+= mini-memstick.img 92.endif 93 94CLEANFILES= packagesystem *.txz MANIFEST system ${IMAGES} 95CLEANDIRS= dist ftp release bootonly dvd 96beforeclean: 97 chflags -R noschg . 98.include <bsd.obj.mk> 99clean: beforeclean 100 101base.txz: 102 mkdir -p ${DISTDIR} 103 cd ${WORLDDIR} && ${IMAKE} distributeworld DISTDIR=${.OBJDIR}/${DISTDIR} 104# Set up mergemaster root database 105 sh ${.CURDIR}/scripts/mm-mtree.sh -m ${WORLDDIR} -F \ 106 "TARGET_ARCH=${TARGET_ARCH} TARGET=${TARGET}" -D "${.OBJDIR}/${DISTDIR}/base" 107 etcupdate extract -B -M "TARGET_ARCH=${TARGET_ARCH} TARGET=${TARGET}" \ 108 -s ${WORLDDIR} -d "${.OBJDIR}/${DISTDIR}/base/var/db/etcupdate" 109# Package all components 110 cd ${WORLDDIR} && ${IMAKE} packageworld DISTDIR=${.OBJDIR}/${DISTDIR} 111 mv ${DISTDIR}/*.txz . 112 113kernel.txz: 114 mkdir -p ${DISTDIR} 115 cd ${WORLDDIR} && ${IMAKE} distributekernel packagekernel DISTDIR=${.OBJDIR}/${DISTDIR} 116 mv ${DISTDIR}/kernel*.txz . 117 118src.txz: 119 mkdir -p ${DISTDIR}/usr 120 ln -fs ${WORLDDIR} ${DISTDIR}/usr/src 121 cd ${DISTDIR} && tar cLvJf ${.OBJDIR}/src.txz --exclude .svn --exclude .zfs \ 122 --exclude .git --exclude @ --exclude usr/src/release/dist usr/src 123 124ports.txz: 125 mkdir -p ${DISTDIR}/usr 126 ln -fs ${PORTSDIR} ${DISTDIR}/usr/ports 127 cd ${DISTDIR} && tar cLvJf ${.OBJDIR}/ports.txz \ 128 --exclude .git --exclude .svn \ 129 --exclude usr/ports/distfiles --exclude usr/ports/packages \ 130 --exclude 'usr/ports/INDEX*' --exclude work usr/ports 131 132reldoc: 133 cd ${.CURDIR}/doc && ${MAKE} all install clean 'FORMATS=html txt' \ 134 INSTALL_COMPRESSED='' URLS_ABSOLUTE=YES DOCDIR=${.OBJDIR}/rdoc 135 mkdir -p reldoc 136.for i in hardware readme relnotes errata 137 ln -f rdoc/${RELNOTES_LANG}/${i}/article.txt reldoc/${i:tu}.TXT 138 ln -f rdoc/${RELNOTES_LANG}/${i}/article.html reldoc/${i:tu}.HTM 139.endfor 140 cp rdoc/${RELNOTES_LANG}/readme/docbook.css reldoc 141 142system: packagesystem 143# Install system 144 mkdir -p release 145 cd ${WORLDDIR} && ${IMAKE} installkernel installworld distribution \ 146 DESTDIR=${.OBJDIR}/release WITHOUT_RESCUE=1 WITHOUT_KERNEL_SYMBOLS=1 \ 147 WITHOUT_PROFILE=1 WITHOUT_SENDMAIL=1 WITHOUT_ATF=1 WITHOUT_LIB32=1 148# Copy distfiles 149 mkdir -p release/usr/freebsd-dist 150 cp *.txz MANIFEST release/usr/freebsd-dist 151# Copy documentation, if generated 152.if !defined(NODOC) 153 cp reldoc/* release 154.endif 155# Set up installation environment 156 ln -fs /tmp/bsdinstall_etc/resolv.conf release/etc/resolv.conf 157 echo sendmail_enable=\"NONE\" > release/etc/rc.conf 158 echo hostid_enable=\"NO\" >> release/etc/rc.conf 159 cp ${.CURDIR}/rc.local release/etc 160 touch ${.TARGET} 161 162bootonly: packagesystem 163# Install system 164 mkdir -p bootonly 165 cd ${WORLDDIR} && ${IMAKE} installkernel installworld distribution \ 166 DESTDIR=${.OBJDIR}/bootonly WITHOUT_AMD=1 WITHOUT_AT=1 \ 167 WITHOUT_GAMES=1 WITHOUT_GROFF=1 \ 168 WITHOUT_INSTALLLIB=1 WITHOUT_LIB32=1 WITHOUT_MAIL=1 \ 169 WITHOUT_NCP=1 WITHOUT_TOOLCHAIN=1 WITHOUT_PROFILE=1 \ 170 WITHOUT_INSTALLIB=1 WITHOUT_RESCUE=1 WITHOUT_DICT=1 \ 171 WITHOUT_KERNEL_SYMBOLS=1 172# Copy manifest only (no distfiles) to get checksums 173 mkdir -p bootonly/usr/freebsd-dist 174 cp MANIFEST bootonly/usr/freebsd-dist 175# Copy documentation, if generated 176.if !defined(NODOC) 177 cp reldoc/* bootonly 178.endif 179# Set up installation environment 180 ln -fs /tmp/bsdinstall_etc/resolv.conf bootonly/etc/resolv.conf 181 echo sendmail_enable=\"NONE\" > bootonly/etc/rc.conf 182 echo hostid_enable=\"NO\" >> bootonly/etc/rc.conf 183 cp ${.CURDIR}/rc.local bootonly/etc 184 185dvd: 186# Install system 187 mkdir -p ${.TARGET} 188 cd ${WORLDDIR} && ${IMAKE} installkernel installworld distribution \ 189 DESTDIR=${.OBJDIR}/${.TARGET} WITHOUT_RESCUE=1 WITHOUT_KERNEL_SYMBOLS=1 190# Copy distfiles 191 mkdir -p ${.TARGET}/usr/freebsd-dist 192 cp *.txz MANIFEST ${.TARGET}/usr/freebsd-dist 193# Copy documentation, if generated 194.if !defined(NODOC) 195 cp reldoc/* ${.TARGET} 196.endif 197# Set up installation environment 198 ln -fs /tmp/bsdinstall_etc/resolv.conf ${.TARGET}/etc/resolv.conf 199 echo sendmail_enable=\"NONE\" > ${.TARGET}/etc/rc.conf 200 echo hostid_enable=\"NO\" >> ${.TARGET}/etc/rc.conf 201 cp ${.CURDIR}/rc.local ${.TARGET}/etc 202 touch ${.TARGET} 203 204release.iso: disc1.iso 205disc1.iso: system 206 sh ${.CURDIR}/${TARGET}/mkisoimages.sh -b FreeBSD_Install ${.TARGET} release 207 208dvd1.iso: dvd pkg-stage 209 sh ${.CURDIR}/${TARGET}/mkisoimages.sh -b FreeBSD_Install ${.TARGET} dvd 210 211bootonly.iso: bootonly 212 sh ${.CURDIR}/${TARGET}/mkisoimages.sh -b FreeBSD_Install ${.TARGET} bootonly 213 214memstick: memstick.img 215memstick.img: system 216 sh ${.CURDIR}/${TARGET}/make-memstick.sh release ${.TARGET} 217 218mini-memstick: mini-memstick.img 219mini-memstick.img: system 220 sh ${.CURDIR}/${TARGET}/make-memstick.sh bootonly ${.TARGET} 221 222packagesystem: base.txz kernel.txz ${EXTRA_PACKAGES} 223 sh ${.CURDIR}/scripts/make-manifest.sh *.txz > MANIFEST 224 touch ${.TARGET} 225 226pkg-stage: 227.if !defined(NOPKG) 228 env REPOS_DIR=${.CURDIR}/pkg_repos/ \ 229 sh ${.CURDIR}/scripts/pkg-stage.sh 230 mkdir -p ${.OBJDIR}/dvd/packages/repos/ 231 cp ${.CURDIR}/scripts/FreeBSD_install_cdrom.conf \ 232 ${.OBJDIR}/dvd/packages/repos/ 233.endif 234 touch ${.TARGET} 235 236cdrom: disc1.iso bootonly.iso 237dvdrom: dvd1.iso 238ftp: packagesystem 239 rm -rf ftp 240 mkdir -p ftp 241 cp *.txz MANIFEST ftp 242 243release: 244 ${MAKE} -C ${.CURDIR} ${.MAKEFLAGS} obj 245 ${MAKE} -C ${.CURDIR} ${.MAKEFLAGS} ${RELEASE_TARGETS} 246 247install: 248.if defined(DESTDIR) && !empty(DESTDIR) 249 mkdir -p ${DESTDIR} 250.endif 251 cp -a ftp ${DESTDIR}/ 252.for I in ${IMAGES} 253 cp -p ${I} ${DESTDIR}/${OSRELEASE}-${I}
| 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 34.if !defined(TARGET) || empty(TARGET) 35TARGET= ${MACHINE} 36.endif 37.if !defined(TARGET_ARCH) || empty(TARGET_ARCH) 38.if ${TARGET} == ${MACHINE} 39TARGET_ARCH= ${MACHINE_ARCH} 40.else 41TARGET_ARCH= ${TARGET} 42.endif 43.endif 44IMAKE= ${MAKE} TARGET_ARCH=${TARGET_ARCH} TARGET=${TARGET} 45DISTDIR= dist 46 47# Define OSRELEASE by using newvars.sh 48.if !defined(OSRELEASE) || empty(OSRELEASE) 49.for _V in TYPE BRANCH REVISION 50${_V}!= eval $$(awk '/^${_V}=/{print}' ${.CURDIR}/../sys/conf/newvers.sh); echo $$${_V} 51.endfor 52.for _V in ${TARGET_ARCH} 53.if !empty(TARGET:M${_V}) 54OSRELEASE= ${TYPE}-${REVISION}-${BRANCH}-${TARGET} 55.else 56OSRELEASE= ${TYPE}-${REVISION}-${BRANCH}-${TARGET}-${TARGET_ARCH} 57.endif 58.endfor 59.endif 60 61.if !exists(${DOCDIR}) 62NODOC= true 63.endif 64.if !exists(${PORTSDIR}) 65NOPORTS= true 66.endif 67 68EXTRA_PACKAGES= 69.if !defined(NOPORTS) 70EXTRA_PACKAGES+= ports.txz 71.endif 72.if !defined(NOSRC) 73EXTRA_PACKAGES+= src.txz 74.endif 75.if !defined(NODOC) 76EXTRA_PACKAGES+= reldoc 77.endif 78 79RELEASE_TARGETS= ftp 80IMAGES= 81.if exists(${.CURDIR}/${TARGET}/mkisoimages.sh) 82RELEASE_TARGETS+= cdrom 83IMAGES+= disc1.iso bootonly.iso 84. if defined(WITH_DVD) && !empty(WITH_DVD) 85RELEASE_TARGETS+= dvdrom 86IMAGES+= dvd1.iso 87. endif 88.endif 89.if exists(${.CURDIR}/${TARGET}/make-memstick.sh) 90RELEASE_TARGETS+= memstick.img 91RELEASE_TARGETS+= mini-memstick.img 92IMAGES+= memstick.img 93IMAGES+= mini-memstick.img 94.endif 95 96CLEANFILES= packagesystem *.txz MANIFEST system ${IMAGES} 97CLEANDIRS= dist ftp release bootonly dvd 98beforeclean: 99 chflags -R noschg . 100.include <bsd.obj.mk> 101clean: beforeclean 102 103base.txz: 104 mkdir -p ${DISTDIR} 105 cd ${WORLDDIR} && ${IMAKE} distributeworld DISTDIR=${.OBJDIR}/${DISTDIR} 106# Set up mergemaster root database 107 sh ${.CURDIR}/scripts/mm-mtree.sh -m ${WORLDDIR} -F \ 108 "TARGET_ARCH=${TARGET_ARCH} TARGET=${TARGET}" -D "${.OBJDIR}/${DISTDIR}/base" 109 etcupdate extract -B -M "TARGET_ARCH=${TARGET_ARCH} TARGET=${TARGET}" \ 110 -s ${WORLDDIR} -d "${.OBJDIR}/${DISTDIR}/base/var/db/etcupdate" 111# Package all components 112 cd ${WORLDDIR} && ${IMAKE} packageworld DISTDIR=${.OBJDIR}/${DISTDIR} 113 mv ${DISTDIR}/*.txz . 114 115kernel.txz: 116 mkdir -p ${DISTDIR} 117 cd ${WORLDDIR} && ${IMAKE} distributekernel packagekernel DISTDIR=${.OBJDIR}/${DISTDIR} 118 mv ${DISTDIR}/kernel*.txz . 119 120src.txz: 121 mkdir -p ${DISTDIR}/usr 122 ln -fs ${WORLDDIR} ${DISTDIR}/usr/src 123 cd ${DISTDIR} && tar cLvJf ${.OBJDIR}/src.txz --exclude .svn --exclude .zfs \ 124 --exclude .git --exclude @ --exclude usr/src/release/dist usr/src 125 126ports.txz: 127 mkdir -p ${DISTDIR}/usr 128 ln -fs ${PORTSDIR} ${DISTDIR}/usr/ports 129 cd ${DISTDIR} && tar cLvJf ${.OBJDIR}/ports.txz \ 130 --exclude .git --exclude .svn \ 131 --exclude usr/ports/distfiles --exclude usr/ports/packages \ 132 --exclude 'usr/ports/INDEX*' --exclude work usr/ports 133 134reldoc: 135 cd ${.CURDIR}/doc && ${MAKE} all install clean 'FORMATS=html txt' \ 136 INSTALL_COMPRESSED='' URLS_ABSOLUTE=YES DOCDIR=${.OBJDIR}/rdoc 137 mkdir -p reldoc 138.for i in hardware readme relnotes errata 139 ln -f rdoc/${RELNOTES_LANG}/${i}/article.txt reldoc/${i:tu}.TXT 140 ln -f rdoc/${RELNOTES_LANG}/${i}/article.html reldoc/${i:tu}.HTM 141.endfor 142 cp rdoc/${RELNOTES_LANG}/readme/docbook.css reldoc 143 144system: packagesystem 145# Install system 146 mkdir -p release 147 cd ${WORLDDIR} && ${IMAKE} installkernel installworld distribution \ 148 DESTDIR=${.OBJDIR}/release WITHOUT_RESCUE=1 WITHOUT_KERNEL_SYMBOLS=1 \ 149 WITHOUT_PROFILE=1 WITHOUT_SENDMAIL=1 WITHOUT_ATF=1 WITHOUT_LIB32=1 150# Copy distfiles 151 mkdir -p release/usr/freebsd-dist 152 cp *.txz MANIFEST release/usr/freebsd-dist 153# Copy documentation, if generated 154.if !defined(NODOC) 155 cp reldoc/* release 156.endif 157# Set up installation environment 158 ln -fs /tmp/bsdinstall_etc/resolv.conf release/etc/resolv.conf 159 echo sendmail_enable=\"NONE\" > release/etc/rc.conf 160 echo hostid_enable=\"NO\" >> release/etc/rc.conf 161 cp ${.CURDIR}/rc.local release/etc 162 touch ${.TARGET} 163 164bootonly: packagesystem 165# Install system 166 mkdir -p bootonly 167 cd ${WORLDDIR} && ${IMAKE} installkernel installworld distribution \ 168 DESTDIR=${.OBJDIR}/bootonly WITHOUT_AMD=1 WITHOUT_AT=1 \ 169 WITHOUT_GAMES=1 WITHOUT_GROFF=1 \ 170 WITHOUT_INSTALLLIB=1 WITHOUT_LIB32=1 WITHOUT_MAIL=1 \ 171 WITHOUT_NCP=1 WITHOUT_TOOLCHAIN=1 WITHOUT_PROFILE=1 \ 172 WITHOUT_INSTALLIB=1 WITHOUT_RESCUE=1 WITHOUT_DICT=1 \ 173 WITHOUT_KERNEL_SYMBOLS=1 174# Copy manifest only (no distfiles) to get checksums 175 mkdir -p bootonly/usr/freebsd-dist 176 cp MANIFEST bootonly/usr/freebsd-dist 177# Copy documentation, if generated 178.if !defined(NODOC) 179 cp reldoc/* bootonly 180.endif 181# Set up installation environment 182 ln -fs /tmp/bsdinstall_etc/resolv.conf bootonly/etc/resolv.conf 183 echo sendmail_enable=\"NONE\" > bootonly/etc/rc.conf 184 echo hostid_enable=\"NO\" >> bootonly/etc/rc.conf 185 cp ${.CURDIR}/rc.local bootonly/etc 186 187dvd: 188# Install system 189 mkdir -p ${.TARGET} 190 cd ${WORLDDIR} && ${IMAKE} installkernel installworld distribution \ 191 DESTDIR=${.OBJDIR}/${.TARGET} WITHOUT_RESCUE=1 WITHOUT_KERNEL_SYMBOLS=1 192# Copy distfiles 193 mkdir -p ${.TARGET}/usr/freebsd-dist 194 cp *.txz MANIFEST ${.TARGET}/usr/freebsd-dist 195# Copy documentation, if generated 196.if !defined(NODOC) 197 cp reldoc/* ${.TARGET} 198.endif 199# Set up installation environment 200 ln -fs /tmp/bsdinstall_etc/resolv.conf ${.TARGET}/etc/resolv.conf 201 echo sendmail_enable=\"NONE\" > ${.TARGET}/etc/rc.conf 202 echo hostid_enable=\"NO\" >> ${.TARGET}/etc/rc.conf 203 cp ${.CURDIR}/rc.local ${.TARGET}/etc 204 touch ${.TARGET} 205 206release.iso: disc1.iso 207disc1.iso: system 208 sh ${.CURDIR}/${TARGET}/mkisoimages.sh -b FreeBSD_Install ${.TARGET} release 209 210dvd1.iso: dvd pkg-stage 211 sh ${.CURDIR}/${TARGET}/mkisoimages.sh -b FreeBSD_Install ${.TARGET} dvd 212 213bootonly.iso: bootonly 214 sh ${.CURDIR}/${TARGET}/mkisoimages.sh -b FreeBSD_Install ${.TARGET} bootonly 215 216memstick: memstick.img 217memstick.img: system 218 sh ${.CURDIR}/${TARGET}/make-memstick.sh release ${.TARGET} 219 220mini-memstick: mini-memstick.img 221mini-memstick.img: system 222 sh ${.CURDIR}/${TARGET}/make-memstick.sh bootonly ${.TARGET} 223 224packagesystem: base.txz kernel.txz ${EXTRA_PACKAGES} 225 sh ${.CURDIR}/scripts/make-manifest.sh *.txz > MANIFEST 226 touch ${.TARGET} 227 228pkg-stage: 229.if !defined(NOPKG) 230 env REPOS_DIR=${.CURDIR}/pkg_repos/ \ 231 sh ${.CURDIR}/scripts/pkg-stage.sh 232 mkdir -p ${.OBJDIR}/dvd/packages/repos/ 233 cp ${.CURDIR}/scripts/FreeBSD_install_cdrom.conf \ 234 ${.OBJDIR}/dvd/packages/repos/ 235.endif 236 touch ${.TARGET} 237 238cdrom: disc1.iso bootonly.iso 239dvdrom: dvd1.iso 240ftp: packagesystem 241 rm -rf ftp 242 mkdir -p ftp 243 cp *.txz MANIFEST ftp 244 245release: 246 ${MAKE} -C ${.CURDIR} ${.MAKEFLAGS} obj 247 ${MAKE} -C ${.CURDIR} ${.MAKEFLAGS} ${RELEASE_TARGETS} 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
|
254.endfor 255 cd ${DESTDIR} && sha256 ${OSRELEASE}* > ${DESTDIR}/CHECKSUM.SHA256 256 cd ${DESTDIR} && md5 ${OSRELEASE}* > ${DESTDIR}/CHECKSUM.MD5
| 259.endfor 260 cd ${DESTDIR} && sha256 ${OSRELEASE}* > ${DESTDIR}/CHECKSUM.SHA256 261 cd ${DESTDIR} && md5 ${OSRELEASE}* > ${DESTDIR}/CHECKSUM.MD5
|