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