Merge branch 'vendor/GCC44'
[dragonfly.git] / nrelease / Makefile
1 # $DragonFly: src/nrelease/Makefile,v 1.90 2008/09/01 21:20:30 swildner Exp $
2 #
3
4 #########################################################################
5 #                               ENHANCEMENTS                            #
6 #########################################################################
7
8 # New method e.g. 'make gui release'.  A series of enhancement
9 # targes may be specified which set make variables which enhance
10 # the build in various ways.
11 #
12 gui installer img:
13
14 #########################################################################
15 #                                SETUP                                  #
16 #########################################################################
17
18 ISODIR?=        /usr/release
19 ISOROOT?=       ${ISODIR}/root
20 OBJSYS=         ${.OBJDIR}/../sys
21
22 MAKE_JOBS?=     $$(sysctl -n hw.ncpu)
23
24 .if make(gui)
25 KERNCONF ?= DFLYLIVE VKERNEL DFLYLIVE-SMP DFLYLIVE-SMP-NOAPIC
26 .else
27 KERNCONF ?= GENERIC VKERNEL
28 .endif
29
30 PKGSRC_PREFIX?=         /usr/pkg
31 PKGBIN_PKG_ADD?=        ${PKGSRC_PREFIX}/sbin/pkg_add
32 PKGBIN_PKG_DELETE?=     ${PKGSRC_PREFIX}/sbin/pkg_delete
33 PKGBIN_PKG_ADMIN?=      ${PKGSRC_PREFIX}/sbin/pkg_admin
34 PKGBIN_MKISOFS?=        ${PKGSRC_PREFIX}/bin/mkisofs
35 PKGSRC_PKG_PATH?=       ${ISODIR}/packages
36 PKGSRC_BOOTSTRAP_URL?=  http://avalon.dragonflybsd.org/DragonFly-pkgsrc-packages/i386/1.12.0-RELEASE-BUILD
37 CVSUP_BOOTSTRAP_KIT?=   cvsup-bootstrap-20070716
38
39 # We use env -i in the chroot, so that environment variables won't
40 # disturb any (pkgsrc) build.  This has happened for TARGET_ARCH,
41 # which is used by gmake in completely different context.
42 #
43 CHROOT_CMD?=            env -i CCVER=${CCVER:Q} /usr/sbin/chroot ${ISOROOT} sh -c
44
45 # User may specify extra packages in addition to the defaults
46 #
47 PKGSRC_EXTRA_PACKAGES?=
48
49 # Pkgsrc packages to be built and installed on the release ISO
50 #
51 PKGSRC_PACKAGES?=       pkgtools/pkg_leaves \
52                         pkgtools/pkg_tarup \
53                         devel/scmgit \
54                         net/isc-dhcp4 \
55                         net/isc-dhcpd4 \
56                         sysutils/cdrtools \
57                         ${PKGSRC_EXTRA_PACKAGES}
58
59 # pkgsrc options to use when building packages
60 #
61 PKGSRC_OPTIONS+=        MAKE_JOBS=${MAKE_JOBS}
62 PKGSRC_OPTIONS+=        WRKOBJDIR=/usr/pkgobj
63 PKGSRC_OPTIONS+=        PKG_DEFAULT_OPTIONS='dri inet6'
64 .if !make(gui)
65 PKGSRC_OPTIONS+=        PKG_OPTIONS.scmgit=-scmgit-gui
66 .endif
67
68 # Even though buildiso wipes the packages, our check target has to run
69 # first and old packages (listed as they appear in pkg_info) must be
70 # cleaned out in order for the pkg_add -n test we use in the check target
71 # to operate properly.
72 #
73 OLD_PKGSRC_PACKAGES?=   cdrtools-2.01.01.27nb1 \
74                         cdrecord-2.00.3nb2 \
75                         bootstrap-kit-20070205 \
76                         dfuibe_installer-1.1.6 \
77                         gettext-lib-0.14.5 \
78                         dfuibe_installer-1.1.7nb1 \
79                         dfuife_curses-1.5 \
80                         gettext-lib-0.14.6 \
81                         gettext-tools-0.14.6nb1 \
82                         libaura-3.1 \
83                         libdfui-4.2 \
84                         libinstaller-5.1 \
85                         bootstrap-kit-20080211 \
86                         cdrtools-ossdvd-2.01.1.36nb2 \
87                         isc-dhcp-base-4.0.0 \
88                         isc-dhcp-server-4.0.0
89
90 # Specify which root skeletons are required, and let the user include
91 # their own.  They are copied into ISODIR during the `customizeiso'
92 # target; each overwrites the last.
93 #
94 REQ_ROOTSKELS=  ${.CURDIR}/root \
95                 ${.CURDIR}/installer
96 ROOTSKELS?=     ${REQ_ROOTSKELS}
97
98 .if make(gui)
99 ISOFILE?=               ${ISODIR}/dfly-gui.iso
100 IMGFILE?=               ${ISODIR}/dfly-gui.img
101 PKGSRC_PACKAGES+=       meta-pkgs/modular-xorg-apps \
102                         meta-pkgs/modular-xorg-drivers \
103                         meta-pkgs/modular-xorg-fonts \
104                         meta-pkgs/modular-xorg-libs \
105                         wm/fluxbox \
106                         wm/fvwm \
107                         www/firefox3 \
108                         print/xpdf \
109                         shells/zsh \
110                         editors/emacs \
111                         editors/vim \
112                         chat/pidgin \
113                         chat/irssi \
114                         chat/xchat \
115                         x11/modular-xorg-server \
116                         x11/rxvt-unicode \
117                         x11/eterm \
118                         lang/perl5 \
119                         editors/nano \
120                         shells/bash \
121                         devel/exctags \
122                         archivers/zip \
123                         security/sudo \
124                         www/links-gui \
125                         net/nmap \
126                         net/wget \
127                         fonts/terminus-font \
128                         net/rsync \
129                         sysutils/idesk \
130                         time/asclock \
131                         misc/screen
132 ROOTSKELS+=             ${.CURDIR}/gui
133 .endif
134
135 ISOFILE ?= ${ISODIR}/dfly.iso
136 IMGFILE ?= ${ISODIR}/dfly.img
137
138 IMGMNT ?= ${ISODIR}/mnt
139
140 # USB umass now probes starting at da8, so the usb stick is
141 # probably sitting on da8.
142 #
143 IMGUSBDEV ?= /dev/da8
144
145 # note: we use the '${NRLOBJDIR}/nrelease' construct, that is we add
146 # the additional '/nrelease' manually, as a safety measure.
147 #
148 NRLOBJDIR?= /usr/obj
149
150 #########################################################################
151 #                               BASE ISO TARGETS                        #
152 #########################################################################
153
154 release:        check clean buildworld1 buildkernel1 \
155                 buildiso srcs customizeiso mklocatedb \
156                 mkiso mkimg
157
158 quickrel:       check clean buildworld2 buildkernel2 \
159                 buildiso srcs customizeiso mklocatedb \
160                 mkiso mkimg
161
162 realquickrel:   check clean \
163                 buildiso srcs customizeiso mklocatedb \
164                 mkiso mkimg
165
166 restartpkgs:    check customizeiso mklocatedb mkiso mkimg
167
168 quick:          quickrel
169
170 realquick:      realquickrel
171
172
173 #########################################################################
174 #                          CORE SUPPORT TARGETS                         #
175 #########################################################################
176
177 check:
178 .if !exists(${PKGBIN_PKG_ADMIN})
179         @echo "You never bootstrapped pkgsrc on your machine.  You can install it with:"
180         @echo "    make pkgsrc_bootstrap"
181 .endif
182 .if !exists(${PKGSRC_PKG_PATH}/${CVSUP_BOOTSTRAP_KIT}.tgz)
183         @echo "The cvsup bootstrap kit is not installed.  You can install it with:"
184         @echo "    make fetch"
185 .endif
186 .if !exists (${PKGBIN_MKISOFS})
187         @echo
188         @echo "Your machine does not have cdrtools installed.  You can install it with:"
189         @echo "    make pkgsrc_cdrecord"
190 .endif
191 .if !defined(PKGSRC_PATH)
192         @echo "Please set PKGSRC_PATH to the pkgsrc tree that shall be used for"
193         @echo "package building.  For example /usr/pkgsrc.  See the Makefile"
194         @echo "in /usr if you are unfamiliar with pkgsrc."
195 .endif
196 .if !exists(${PKGSRC_PKG_PATH}/${CVSUP_BOOTSTRAP_KIT}.tgz)
197         @exit 1
198 .endif
199 .if !exists (${PKGBIN_MKISOFS})
200         @exit 1
201 .endif
202 .if !defined(PKGSRC_PATH)
203         @exit 1
204 .endif
205
206 buildworld1 buildworld2:
207         cd ${.CURDIR}/..; \
208         ${WORLD_CCVER:C/^..*$/WORLD_CCVER=/}${WORLD_CCVER} \
209                 make -j ${MAKE_JOBS} -DWANT_INSTALLER ${.TARGET:C/build(.*)2/quick\1/:C/1//}
210
211 buildkernel1 buildkernel2:
212 .if make(gui)
213         cd ${.CURDIR}/..; \
214         for kernconf in ${KERNCONF}; do \
215                 ${WORLD_CCVER:C/^..*$/WORLD_CCVER=/}${WORLD_CCVER} \
216                         make -j ${MAKE_JOBS} ${.TARGET:C/build(.*)2/quick\1/:C/1//} \
217                         KERNCONF=$${kernconf} KERNCONFDIR=${.CURDIR}/gui/root; \
218         done
219 .else
220         cd ${.CURDIR}/..; \
221         first=; \
222         for kernconf in ${KERNCONF}; do \
223                 ${WORLD_CCVER:C/^..*$/WORLD_CCVER=/}${WORLD_CCVER} \
224                         make -j ${MAKE_JOBS} ${.TARGET:C/build(.*)2/quick\1/:C/1//} \
225                         KERNCONF=$${kernconf} \
226                         $${first:+-DNO_MODULES}; \
227                 first=done; \
228         done
229 .endif
230
231 # note that we do not want to mess with any /usr/obj directories not related
232 # to buildworld, buildkernel, or nrelease, so we must supply the proper
233 # MAKEOBJDIRPREFIX for targets that are not run through the buildworld and 
234 # buildkernel mechanism.
235 #
236 buildiso:
237         if [ ! -d ${ISOROOT} ]; then mkdir -p ${ISOROOT}; fi
238         if [ ! -d ${NRLOBJDIR}/nrelease ]; then mkdir -p ${NRLOBJDIR}/nrelease; fi
239         ( cd ${.CURDIR}/..; make -DWANT_INSTALLER DESTDIR=${ISOROOT} installworld )
240         ( cd ${.CURDIR}/../etc; MAKEOBJDIRPREFIX=${NRLOBJDIR}/nrelease \
241                 make -m ${.CURDIR}/../share/mk DESTDIR=${ISOROOT} distribution )
242         cpdup ${ISOROOT}/etc ${ISOROOT}/etc.hdd
243 .if make(gui)
244         if [ ! -d ${ISOROOT}/kernel.smp/boot ]; then mkdir -p ${ISOROOT}/kernel.smp/boot; fi
245         cd ${.CURDIR}/..; \
246         make installkernel DESTDIR=${ISOROOT} \
247         KERNCONF=DFLYLIVE DESTKERNNAME=kernel KERNCONFDIR=${.CURDIR}/gui/root; \
248         cd ${.CURDIR}/..; \
249         make installkernel DESTDIR=${ISOROOT} \
250         KERNCONF=VKERNEL DESTKERNNAME=kernel.VKERNEL -DNO_MODULES KERNCONFDIR=${.CURDIR}/gui/root; \
251         cd ${.CURDIR}/..; \
252         make installkernel DESTDIR=${ISOROOT}/kernel.smp \
253         KERNCONF=DFLYLIVE-SMP DESTKERNNAME=kernel KERNCONFDIR=${.CURDIR}/gui/root; \
254         cd ${.CURDIR}/..; \
255         make installkernel DESTDIR=${ISOROOT}/kernel.smp \
256         KERNCONF=DFLYLIVE-SMP-NOAPIC DESTKERNNAME=kernel.noapic \
257                 KERNCONFDIR=${.CURDIR}/gui/root -DNO_MODULES;
258 .else
259         cd ${.CURDIR}/..; \
260         first=; \
261         for kernconf in ${KERNCONF}; do \
262                 make DESTDIR=${ISOROOT} \
263                         installkernel KERNCONF=$${kernconf} \
264                         $${first:+DESTKERNNAME=kernel.$${kernconf}} \
265                         $${first:+-DNO_MODULES}; \
266                 first=done; \
267         done
268 .endif
269         ln -s kernel ${ISOROOT}/boot/kernel.BOOTP
270         mtree -deU -f ${.CURDIR}/../etc/mtree/BSD.local.dist -p ${ISOROOT}/usr/local/
271         mtree -deU -f ${.CURDIR}/../etc/mtree/BSD.var.dist -p ${ISOROOT}/var
272         dev_mkdb -f ${ISOROOT}/var/run/dev.db ${ISOROOT}/dev
273
274 # Release CD: Kernel sources (~16M) and the full pkgsrc tree (~27M)
275 # Release DVD: Full sources (~90M) and the full pkgsrc tree (~27M)
276 #
277 srcs:
278 .if !defined(WITHOUT_SRCS)
279         rm -f ${ISOROOT}/usr/pkgsrc-all.tgz
280         cd ${PKGSRC_PATH} && tar --exclude distfiles --exclude packages --exclude work --exclude CVS --exclude .git \
281                 -czf ${ISOROOT}/usr/pkgsrc-all.tgz .
282 .if make(gui)
283         rm -f ${ISOROOT}/usr/src-all.tgz
284         cd ${.CURDIR}/.. && tar --exclude .git --exclude CVS -s '/^\./src/' \
285                 -czf ${ISOROOT}/usr/src-all.tgz .
286 .else
287         rm -f ${ISOROOT}/usr/src-sys.tgz
288         cd ${.CURDIR}/.. && tar --exclude .git --exclude CVS -s '/^\./src/' \
289                 -czf ${ISOROOT}/usr/src-sys.tgz ./Makefile ./Makefile.inc1 ./sys
290 .endif
291 .endif
292
293 # Customize the ISO by copying rootskels in reverse priority order,
294 # building packages, and doing other post-install tasks.
295 #
296 customizeiso:
297         # Copy the rootskels.  Allow sources to be owned by someone other
298         # then root (as is common when checked out via git).
299         #
300 .for ROOTSKEL in ${ROOTSKELS}
301         cpdup -X cpignore -o ${ROOTSKEL} ${ISOROOT}
302         @test -O ${.CURDIR} || echo "chowning copied files to root:wheel"
303         @test -O ${.CURDIR} || ((cd ${ROOTSKEL} && find .) | fgrep -v cpignore | (cd ${ISOROOT} && xargs chown root:wheel))
304 .endfor
305         (cd ${PKGSRC_PKG_PATH}; tar xzpf ${CVSUP_BOOTSTRAP_KIT}.tgz)
306         cp -p ${PKGSRC_PKG_PATH}/${CVSUP_BOOTSTRAP_KIT}/usr/local/bin/cvsup ${ISOROOT}/usr/local/bin/cvsup
307         cp -p ${PKGSRC_PKG_PATH}/${CVSUP_BOOTSTRAP_KIT}/usr/local/man/man1/cvsup.1 ${ISOROOT}/usr/local/man/man1/cvsup.1
308         pwd_mkdb -p -d ${ISOROOT}/etc ${ISOROOT}/etc/master.passwd
309 .for UPGRADE_ITEM in Makefile                   \
310                      etc.${MACHINE_ARCH}        \
311                      isdn/Makefile              \
312                      rc.d/Makefile              \
313                      periodic/Makefile          \
314                      periodic/daily/Makefile    \
315                      periodic/security/Makefile \
316                      periodic/weekly/Makefile   \
317                      periodic/monthly/Makefile
318         cp -R ${.CURDIR}/../etc/${UPGRADE_ITEM} ${ISOROOT}/etc/${UPGRADE_ITEM}
319 .endfor
320         #
321         # Setup some things & mount pkgsrc tree.  Use defensive umounts and
322         # rm -rf's to allow restarts.  Allow /usr/pkgsrc to be read-only.
323         #
324         # If we did not get past the bootstrap we clean out the entire
325         # /usr/pkg infrastructure.  Otherwise we attempt to pick up where
326         # we left off.
327         #
328         cp -p /etc/resolv.conf ${ISOROOT}/etc
329         ${CHROOT_CMD} "ldconfig -elf /usr/lib /usr/lib/gcc* /usr/lib/compat"
330         -@umount ${ISOROOT}/usr/pkgsrc/distfiles
331         -@umount ${ISOROOT}/usr/pkgsrc
332         -@umount ${ISOROOT}/dev
333         mkdir -p ${ISODIR}/distfiles
334         rm -rf ${ISOROOT}/usr/pkgobj
335         #
336         # Mount /usr/pkgsrc, make sure /usr/pkgsrc/distfiles is writable
337         #
338         mkdir -p ${ISOROOT}/usr/pkgobj
339         mkdir -p ${ISOROOT}/usr/pkgobj/bootstrap
340         mkdir -p ${ISOROOT}/usr/pkgsrc
341         mount_null ${PKGSRC_PATH} ${ISOROOT}/usr/pkgsrc
342         mount_devfs ${ISOROOT}/dev
343         cp /etc/shells ${ISOROOT}/usr/pkgsrc/distfiles/.test > /dev/null 2>&1 \
344             || mount_null ${ISODIR}/distfiles ${ISOROOT}/usr/pkgsrc/distfiles
345         #
346         # Bootstrap, if not already installed, and add licenses needed
347         # for the gui release
348         #
349         test -e ${ISODIR}/.didbootstrap || \
350             rm -rf ${ISOROOT}/usr/pkg ${ISOROOT}/var/db/pkg \
351                     ${ISOROOT}/var/db/pkg.refcount
352         test -e ${ISODIR}/.didbootstrap || \
353             ${CHROOT_CMD} "cd /usr/pkgsrc/bootstrap;    \
354                 ./bootstrap --workdir /usr/pkgobj/bootstrap/work"
355 .if make(gui)
356         test -e ${ISODIR}/.didbootstrap || \
357             echo ".ifdef BSD_PKG_MK     # added by nrelease" \
358                 >> ${ISOROOT}/usr/pkg/etc/mk.conf
359         test -e ${ISODIR}/.didbootstrap || \
360             echo "ACCEPTABLE_LICENSES+=openmotif-license" \
361                 >> ${ISOROOT}/usr/pkg/etc/mk.conf
362         test -e ${ISODIR}/.didbootstrap || \
363             echo "ACCEPTABLE_LICENSES+=vim-license" \
364                 >> ${ISOROOT}/usr/pkg/etc/mk.conf
365         test -e ${ISODIR}/.didbootstrap || \
366             echo ".endif                        # added by nrelease" \
367                 >> ${ISOROOT}/usr/pkg/etc/mk.conf
368 .endif
369         test -e ${ISODIR}/.didbootstrap || sync
370         test -e ${ISODIR}/.didbootstrap || touch ${ISODIR}/.didbootstrap
371         #
372         # Build and install packages, skip packages already installed
373         #
374 .for PKG in ${PKGSRC_PACKAGES}
375         ${CHROOT_CMD} "cd /usr/pkgsrc/${PKG} && \
376             (bmake check > /dev/null 2>&1 || \
377             bmake ${PKGSRC_OPTIONS} clean build install)"
378 .endfor
379         #
380         # Remove packages which nothing depends on and clean up
381         #
382         ${CHROOT_CMD} "pkg_leaves | xargs pkg_delete -R"
383         -umount ${ISOROOT}/usr/pkgsrc/distfiles
384         umount ${ISOROOT}/dev
385         umount ${ISOROOT}/usr/pkgsrc
386         rmdir ${ISOROOT}/usr/pkgsrc
387         rm -rf ${ISOROOT}/usr/pkgobj
388         rm -f ${ISOROOT}/etc/resolv.conf
389         makewhatis ${ISOROOT}/usr/local/man
390         makewhatis ${ISOROOT}/usr/pkg/man
391
392 # So locate works
393 #
394 mklocatedb:
395         ( find -s ${ISOROOT} -path ${ISOROOT}/tmp -or \
396                 -path ${ISOROOT}/usr/tmp -or -path ${ISOROOT}/var/tmp \
397                 -prune -o -print | sed -e 's#^${ISOROOT}##g' | \
398                 /usr/libexec/locate.mklocatedb \
399                 -presort >${ISOROOT}/var/db/locate.database )
400
401 mkiso:
402         ( cd ${ISOROOT}; ${PKGBIN_MKISOFS} -b boot/cdboot -no-emul-boot \
403                 -R -J -o ${ISOFILE} \
404                 -V DragonFly-`${.CURDIR}/../tools/gitrev.sh | cut -c -22` . )
405
406
407 mkimg:
408 .if make(img)
409         if [ ! -d ${IMGMNT} ]; then mkdir -p ${IMGMNT}; fi
410
411         echo "determine required image size" > /dev/null;               \
412         sz=`du -ck ${ISOROOT} | tail -n 1 | cut -f 1`;                  \
413         echo "add 15% more space as required" > /dev/null;              \
414         sz=`bc -e "(($${sz}) / 1024) * 1.15" -equit | cut -f1 -d.`;     \
415         dd if=/dev/zero of=${IMGFILE} bs=1m count=$${sz};               \
416         fdisk -IB -p ${IMGFILE};                                        \
417         echo "determine free vn device" > /dev/null;                    \
418         vn=`vnconfig -l | grep "not in use" | head -n 1 | cut -f 1 -d:`; \
419         vnconfig -e -s labels $${vn} ${IMGFILE};                        \
420         echo "write standard disklabel" > /dev/null;                    \
421         disklabel -w -r $${vn}s1 auto;                                  \
422         echo "read disklabel back" > /dev/null;                         \
423         disklabel -r $${vn}s1 > ${IMGFILE}.label;                       \
424         echo "determine number of sectors of whole disk" > /dev/null;   \
425         secs=`tail -n 1 ${IMGFILE}.label | cut -f 3 -w`;                \
426         echo "and add a: partition" > /dev/null;                        \
427         echo "  a:  $${secs} 0 4.2BSD" >> ${IMGFILE}.label;             \
428         echo "write modified disklabel back" > /dev/null;               \
429         disklabel -R -r $${vn}s1 ${IMGFILE}.label;                      \
430         rm ${IMGFILE}.label;                                            \
431         echo "write bootsector" >  /dev/null;                           \
432         disklabel -B $${vn}s1;                                          \
433         boot0cfg -B -o noupdate $${vn};                                 \
434         newfs /dev/$${vn}s1a;                                           \
435         mount /dev/$${vn}s1a ${IMGMNT};                                 \
436         cpdup -vvv ${ISOROOT} ${IMGMNT};                                \
437         echo "fix /etc/fstab" > /dev/null;                              \
438         echo "${IMGUSBDEV}s1a / ufs rw 0 0" > ${IMGMNT}/etc/fstab;      \
439         echo "proc /proc procfs rw 0 0" >> ${IMGMNT}/etc/fstab;         \
440         df ${IMGMNT};                                                   \
441         umount ${IMGMNT};                                               \
442         vnconfig -u $${vn};                                             \
443         rmdir ${IMGMNT}
444 .endif
445
446 clean:
447         -umount ${ISOROOT}/usr/pkgsrc/distfiles > /dev/null 2>&1
448         -umount ${ISOROOT}/usr/pkgsrc > /dev/null 2>&1
449         -umount ${ISOROOT}/dev
450         if [ -d ${ISOROOT} ]; then chflags -R noschg ${ISOROOT}; fi
451         rm -rf ${ISOROOT}
452         rm -rf ${NRLOBJDIR}/nrelease
453         rm -f ${ISODIR}/.didbootstrap
454
455 realclean:      clean
456         rm -rf ${OBJSYS}/${KERNCONF}
457         #
458         # do not use PKGSRC_PKG_PATH here, we do not want to destroy an
459         # override location.
460         #
461         rm -rf ${ISODIR}/packages
462         rm -rf ${ISODIR}/distfiles
463
464 fetch:
465         @if [ ! -d ${PKGSRC_PKG_PATH} ]; then mkdir -p ${PKGSRC_PKG_PATH}; fi
466 .if !exists(${PKGSRC_PKG_PATH}/${CVSUP_BOOTSTRAP_KIT}.tgz)
467         (cd ${PKGSRC_PKG_PATH}; fetch ${PKGSRC_BOOTSTRAP_URL}/${CVSUP_BOOTSTRAP_KIT}.tgz)
468 .endif
469
470 pkgsrc_bootstrap:
471 .if !exists(${PKGSRC_PKG_PATH}/${PKGSRC_BOOTSTRAP_KIT}.tgz)
472         mkdir -p /usr/release/bootstrap
473         (cd ${PKGSRC_PATH}/bootstrap; ./bootstrap --workdir /usr/release/bootstrap)
474 .endif
475
476 pkgsrc_cdrecord:
477 .if !exists (${PKGBIN_MKISOFS})
478         (cd ${PKGSRC_PATH}/sysutils/cdrtools; bmake clean build install)
479 .endif
480
481 help all:
482         @echo "make [gui] release   - complete build from scratch"
483         @echo "make [gui] quick     - attempt to do an incremental rebuild"
484         @echo "make [gui] realquick - attempt to restart after world & kernel"
485         @echo "make [gui] restartpkgs - attempt to restart at the pkg building stage"
486         @echo ""
487         @echo "Extra packages may be specified with PKGSRC_EXTRA_PACKAGES"
488
489 .PHONY: release quickrel realquickrel
490 .PHONY: installer
491 .PHONY: quick realquick
492 .PHONY: check buildworld1 buildworld2
493 .PHONY: buildkernel1 buildkernel2 buildiso customizeiso mklocatedb mkiso mkimg
494 .PHONY: clean realclean fetch help all srcs
495
496 .include <bsd.prog.mk>