Makefile (7688) | Makefile (7732) |
---|---|
1# $Id: Makefile,v 1.130 1995/04/08 21:29:56 phk Exp $ | 1# $Id: Makefile,v 1.131 1995/04/09 03:47:55 jkh Exp $ |
2# 3# How to roll a release: 4# 5# make release CHROOTDIR=<lots of disk> [ RELEASETAG=something ] 6# 7# As far as I know, this will roll everything nicely into the "stage" 8# directory. I still need to write the two rules to move that into 9# the "cdrom" and "ftp" directories. --- 88 unchanged lines hidden (view full) --- 98 mkdir ${RD}/cpiofd/stand/scripts 99 mkdir ${RD}/fixitfd 100 mkdir ${RD}/fixitfd/stand 101 mkdir ${RD}/fixitfd/bin 102 mkdir ${RD}/fixitfd/sbin 103 mkdir ${RD}/fixitfd/mnt 104 mkdir ${RD}/fixitfd/etc 105 mkdir ${RD}/floppies | 2# 3# How to roll a release: 4# 5# make release CHROOTDIR=<lots of disk> [ RELEASETAG=something ] 6# 7# As far as I know, this will roll everything nicely into the "stage" 8# directory. I still need to write the two rules to move that into 9# the "cdrom" and "ftp" directories. --- 88 unchanged lines hidden (view full) --- 98 mkdir ${RD}/cpiofd/stand/scripts 99 mkdir ${RD}/fixitfd 100 mkdir ${RD}/fixitfd/stand 101 mkdir ${RD}/fixitfd/bin 102 mkdir ${RD}/fixitfd/sbin 103 mkdir ${RD}/fixitfd/mnt 104 mkdir ${RD}/fixitfd/etc 105 mkdir ${RD}/floppies |
106 mkdir ${RD}/kernels |
|
106 mkdir ${RD}/trees 107 mkdir ${RD}/trees/bin 108 mkdir ${RD}/dists 109 mkdir ${RD}/dists/bin 110 cd ${.CURDIR}/../etc && make distrib-dirs DESTDIR=${RD}/trees/bin 111 for i in ${EXTRA_DISTS} ; do \ 112 mkdir ${RD}/trees/$$i ; \ 113 mkdir ${RD}/dists/$$i ; \ --- 14 unchanged lines hidden (view full) --- 128 cd ${.CURDIR}/.. ; make distribute DISTDIR=${RD}/trees 129 chflags -R noschg ${RD}/trees 130 touch release.2 131 132# Make and install a couple of kernels we need. 133release.3: 134 @cd ${.CURDIR} && $(MAKE) ckRELEASEDIR 135 cd ${.CURDIR}/../sys/i386/conf && \ | 107 mkdir ${RD}/trees 108 mkdir ${RD}/trees/bin 109 mkdir ${RD}/dists 110 mkdir ${RD}/dists/bin 111 cd ${.CURDIR}/../etc && make distrib-dirs DESTDIR=${RD}/trees/bin 112 for i in ${EXTRA_DISTS} ; do \ 113 mkdir ${RD}/trees/$$i ; \ 114 mkdir ${RD}/dists/$$i ; \ --- 14 unchanged lines hidden (view full) --- 129 cd ${.CURDIR}/.. ; make distribute DISTDIR=${RD}/trees 130 chflags -R noschg ${RD}/trees 131 touch release.2 132 133# Make and install a couple of kernels we need. 134release.3: 135 @cd ${.CURDIR} && $(MAKE) ckRELEASEDIR 136 cd ${.CURDIR}/../sys/i386/conf && \ |
136 config GENERIC && \ 137 config BOOTFLP 138 cd ${.CURDIR}/../sys/compile/GENERIC && \ 139 make depend && \ 140 make kernel && \ 141 install -c kernel ${RD}/trees/bin/kernel.GENERIC && \ 142 cd .. && rm -rf GENERIC 143 ln -f ${RD}/trees/bin/kernel.GENERIC ${RD}/cpiofd/kernel 144 cd ${.CURDIR}/../sys/compile/BOOTFLP && \ 145 make depend && \ 146 make kernel && \ 147 install -s -c kernel ${RD}/bootfd/kernel && \ 148 cd .. && rm -rf BOOTFLP 149 ln -f ${RD}/bootfd/kernel ${RD}/fixitfd/kernel | 137 sed 's/GENERIC/BOOTCDROM/g' GENERIC > BOOTCDROM 138 for i in GENERIC BOOTFLP BOOTCDROM ; do \ 139 cd ${.CURDIR}/../sys/i386/conf && \ 140 config $$i && \ 141 cd ${.CURDIR}/../sys/compile/$$i && \ 142 make depend && \ 143 make kernel && \ 144 cp kernel ${RD}/kernels/$$i ; \ 145 done 146 rm -f ${.CURDIR}/../sys/i386/conf/BOOTCDROM 147 ln -f ${RD}/kernels/GENERIC ${RD}/trees/bin/kernel.GENERIC 148 ln -f ${RD}/kernels/GENERIC ${RD}/cpiofd/kernel 149 cp ${RD}/kernels/BOOTFLP ${RD}/bootfd/kernel 150 strip ${RD}/bootfd/kernel 151 cp ${RD}/kernels/BOOTFLP ${RD}/fixitfd/kernel 152 strip ${RD}/fixitfd/kernel |
150 touch release.3 151 | 153 touch release.3 154 |
152# Make and install the two crunched binaries which live on the floppies. | 155# Make and install the three crunched binaries which live on the floppies. |
153# You are not supposed to like this :-) 154release.4: 155 @cd ${.CURDIR} ; $(MAKE) ckRELEASEDIR 156 for j in boot cpio fixit; do \ 157 rm -rf $${j}_crunch ; \ 158 mkdir $${j}_crunch ; \ 159 ( cd $${j}_crunch ; \ 160 crunchgen ${.CURDIR}/$${j}_crunch.conf ; \ --- 75 unchanged lines hidden (view full) --- 236 install -c RELNOTES.FreeBSD ${RD}/bootfd ;\ 237 install -c TROUBLESHOOTING ${RD}/bootfd ;\ 238 install -c README ${RD}/bootfd/README 239 touch ${RD}/bootfd/this_is_boot_flp 240 cd ${.CURDIR} ; ${MAKE} doFLOPPY FLOPPY=boot 241 touch release.6 242 243# Complete the cpiofd directory | 156# You are not supposed to like this :-) 157release.4: 158 @cd ${.CURDIR} ; $(MAKE) ckRELEASEDIR 159 for j in boot cpio fixit; do \ 160 rm -rf $${j}_crunch ; \ 161 mkdir $${j}_crunch ; \ 162 ( cd $${j}_crunch ; \ 163 crunchgen ${.CURDIR}/$${j}_crunch.conf ; \ --- 75 unchanged lines hidden (view full) --- 239 install -c RELNOTES.FreeBSD ${RD}/bootfd ;\ 240 install -c TROUBLESHOOTING ${RD}/bootfd ;\ 241 install -c README ${RD}/bootfd/README 242 touch ${RD}/bootfd/this_is_boot_flp 243 cd ${.CURDIR} ; ${MAKE} doFLOPPY FLOPPY=boot 244 touch release.6 245 246# Complete the cpiofd directory |
244# XXX a lot of stuff is missing here... | |
245release.7: 246 @cd ${.CURDIR} ; $(MAKE) ckRELEASEDIR 247 cd ${RD}/trees/bin ; ls ${CPIO1} | cpio -dump ${RD}/cpiofd/stand 248 cd ${.CURDIR} ; ls ${CPIO2} | cpio -dumpv ${RD}/cpiofd/stand 249 ( JUST_TELL_ME=please ; . ${.CURDIR}/../sys/conf/newvers.sh ; \ 250 sed "/DISTNAME=/s/FOOBAR/$$DISTNAME/" \ 251 < ${RD}/cpiofd/stand/scripts/miscfuncs.sh \ 252 > ${RD}/cpiofd/stand/scripts/tmp ;\ --- 4 unchanged lines hidden (view full) --- 257 cp ${RD}/trees/bin/usr/sbin/tzsetup ${RD}/cpiofd/stand 258 ( cd ${RD}/cpiofd ; \ 259 ( rm -f OK ; find . -print ; touch OK ; echo OK ) | \ 260 cpio -H newc -oa | gzip -9 -c | dd conv=osync ) \ 261 > ${RD}/floppies/cpio.flp 262 gzip -1 -c < ${RD}/floppies/cpio.flp > ${RD}/floppies/cpio.flp.gz 263 touch release.7 264 | 247release.7: 248 @cd ${.CURDIR} ; $(MAKE) ckRELEASEDIR 249 cd ${RD}/trees/bin ; ls ${CPIO1} | cpio -dump ${RD}/cpiofd/stand 250 cd ${.CURDIR} ; ls ${CPIO2} | cpio -dumpv ${RD}/cpiofd/stand 251 ( JUST_TELL_ME=please ; . ${.CURDIR}/../sys/conf/newvers.sh ; \ 252 sed "/DISTNAME=/s/FOOBAR/$$DISTNAME/" \ 253 < ${RD}/cpiofd/stand/scripts/miscfuncs.sh \ 254 > ${RD}/cpiofd/stand/scripts/tmp ;\ --- 4 unchanged lines hidden (view full) --- 259 cp ${RD}/trees/bin/usr/sbin/tzsetup ${RD}/cpiofd/stand 260 ( cd ${RD}/cpiofd ; \ 261 ( rm -f OK ; find . -print ; touch OK ; echo OK ) | \ 262 cpio -H newc -oa | gzip -9 -c | dd conv=osync ) \ 263 > ${RD}/floppies/cpio.flp 264 gzip -1 -c < ${RD}/floppies/cpio.flp > ${RD}/floppies/cpio.flp.gz 265 touch release.7 266 |
265# Make binary dists, notice that secure dist isn't done yet. | 267# Make binary dists, notice that secure dist isn't finished yet. |
266release.8: 267 @cd ${.CURDIR} ; $(MAKE) ckRELEASEDIR 268 rm -rf ${RD}/dists 269 mkdir -p ${RD}/dists 270 @for i in ${DISTRIBUTIONS} ; \ 271 do \ 272 if [ -d ${RD}/trees/$${i} ] ; then \ 273 cd ${.CURDIR} ; \ --- 4 unchanged lines hidden (view full) --- 278 cp ${.CURDIR}/scripts/extract_$${i}.sh \ 279 ${RD}/dists/$${i}/extract.sh;\ 280 echo "$${i} distribution is finished."; \ 281 fi ; \ 282 done 283 touch release.8 284 285 | 268release.8: 269 @cd ${.CURDIR} ; $(MAKE) ckRELEASEDIR 270 rm -rf ${RD}/dists 271 mkdir -p ${RD}/dists 272 @for i in ${DISTRIBUTIONS} ; \ 273 do \ 274 if [ -d ${RD}/trees/$${i} ] ; then \ 275 cd ${.CURDIR} ; \ --- 4 unchanged lines hidden (view full) --- 280 cp ${.CURDIR}/scripts/extract_$${i}.sh \ 281 ${RD}/dists/$${i}/extract.sh;\ 282 echo "$${i} distribution is finished."; \ 283 fi ; \ 284 done 285 touch release.8 286 287 |
286# Make source dists | 288# Make source dists, and finish of secure too |
287release.9: 288 @cd ${.CURDIR} ; $(MAKE) ckRELEASEDIR 289 @cd ${.CURDIR} ; $(MAKE) doTARBALL SD=/usr/src \ 290 TD=src TN=sbase ARG="[A-Z]*" 291 @for i in `cd /usr/src ; echo [a-z]*` ; do \ 292 if [ -d /usr/src/$$i -a "$$i" != "CVS" ] ; then \ 293 cd ${.CURDIR} ; \ 294 $(MAKE) doTARBALL SD=/usr/src \ --- 39 unchanged lines hidden (view full) --- 334 cd ${RD}/trees/bin/usr/share/FAQ/Text && ln -f ${FAQS} ${FD} 335 336cdrom.1: 337 rm -rf ${CD} 338 mkdir ${CD} 339 mkdir ${CD}/filesys 340 cd ${RD} && find floppies dists bootfd -print | cpio -dumpl ${CD} 341 cd ${CD} && mv bootfd bootcd | 289release.9: 290 @cd ${.CURDIR} ; $(MAKE) ckRELEASEDIR 291 @cd ${.CURDIR} ; $(MAKE) doTARBALL SD=/usr/src \ 292 TD=src TN=sbase ARG="[A-Z]*" 293 @for i in `cd /usr/src ; echo [a-z]*` ; do \ 294 if [ -d /usr/src/$$i -a "$$i" != "CVS" ] ; then \ 295 cd ${.CURDIR} ; \ 296 $(MAKE) doTARBALL SD=/usr/src \ --- 39 unchanged lines hidden (view full) --- 336 cd ${RD}/trees/bin/usr/share/FAQ/Text && ln -f ${FAQS} ${FD} 337 338cdrom.1: 339 rm -rf ${CD} 340 mkdir ${CD} 341 mkdir ${CD}/filesys 342 cd ${RD} && find floppies dists bootfd -print | cpio -dumpl ${CD} 343 cd ${CD} && mv bootfd bootcd |
344 rm -f ${CD}/bootcd/kernel 345 ln -f ${RD}/kernels/BOOTCDROM ${CD}/bootcd/kernel 346 ln -f ${RD}/trees/bin/usr/mdec/fbsdboot.exe ${CD}/bootcd |
|
342 for i in ${DISTRIBUTIONS} ; \ 343 do \ 344 if [ -d ${RD}/trees/$${i} ] ; then \ | 347 for i in ${DISTRIBUTIONS} ; \ 348 do \ 349 if [ -d ${RD}/trees/$${i} ] ; then \ |
345 ( cd ${RD}/trees/$${i}; \ | 350 ( cd ${RD}/trees/$${i} && \ |
346 find . -depth -print | cpio -dumpl ${CD}/filesys ) ; \ 347 fi \ 348 done 349 350# Various "subroutine" and other supporting targets. 351 352doTARBALL: 353.if !defined(SD) --- 72 unchanged lines hidden --- | 351 find . -depth -print | cpio -dumpl ${CD}/filesys ) ; \ 352 fi \ 353 done 354 355# Various "subroutine" and other supporting targets. 356 357doTARBALL: 358.if !defined(SD) --- 72 unchanged lines hidden --- |