diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2011-04-11 14:30:45 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2011-04-11 14:30:45 +0000 |
commit | 5d68dd33d3569d898ce0f04a5239f2e8572c23ee (patch) | |
tree | b3de7fb983b6ddf2beb93001d26a024d1a2953dd /release/Makefile | |
parent | 4de87a7e283564411c78c50bc688c16b2ec4037c (diff) | |
download | FreeBSD-src-5d68dd33d3569d898ce0f04a5239f2e8572c23ee.zip FreeBSD-src-5d68dd33d3569d898ce0f04a5239f2e8572c23ee.tar.gz |
Add an install target to release/Makefile instead of grubbing around
(and requesting that users grub around) in /usr/obj. Also make sure that
make clean removes the bootonly media and clean up that target a little.
Diffstat (limited to 'release/Makefile')
-rw-r--r-- | release/Makefile | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/release/Makefile b/release/Makefile index 610d57a1..4775861 100644 --- a/release/Makefile +++ b/release/Makefile @@ -6,6 +6,7 @@ # cdrom: Builds release CD-ROM media (release.iso) # ftp: Sets up FTP distribution area (ftp) # release: Build all media and FTP distribution area +# install: Copies all release media into ${DESTDIR} # # Variables affecting the build process: # WORLDDIR: location of src tree -- must have built world and default kernel @@ -159,22 +160,26 @@ memstick: system packagesystem: base.txz kernel.txz ${EXTRA_PACKAGES} sh ${.CURDIR}/scripts/make-manifest.sh ${.OBJDIR}/*.txz > ${.OBJDIR}/MANIFEST - touch ${.OBJDIR}/${.TARGET} + touch ${.TARGET} cdrom: release.iso bootonly.iso ftp: packagesystem - rm -rf ${.OBJDIR}/ftp - mkdir ${.OBJDIR}/ftp - cp ${.OBJDIR}/*.txz ${.OBJDIR}/MANIFEST ${.OBJDIR}/ftp + rm -rf ftp + mkdir ftp + cp *.txz MANIFEST ftp release: obj ${RELEASE_TARGETS} clean: chflags -R noschg ${.OBJDIR} - rm -rf ${.OBJDIR}/dist ${.OBJDIR}/ftp + rm -rf dist ftp rm -f packagesystem - rm -f ${.OBJDIR}/*.txz ${.OBJDIR}/MANIFEST + rm -f *.txz MANIFEST rm -f system - rm -rf ${.OBJDIR}/release - rm -f ${.OBJDIR}/release.iso ${.OBJDIR}/memstick + rm -rf release bootonly + rm -f release.iso bootonly.iso memstick + +install: + -mkdir ${DESTDIR} + cp -a *.iso memstick ftp ${DESTDIR}/ |