Change-Id: Iee433cfe6796af0ea292c7eadff365a32059a609
.if ${MKEXTSRC} != "no"
BUILDTARGETS+= do-extsrc
.endif
+
+.if defined(__MINIX) && ${MKSRC} == "yes"
+BUILDTARGETS+= do-installsrc
+.endif # defined(__MINIX)
+
BUILDTARGETS+= do-obsolete
#
@true
.endfor
+.if defined(__MINIX)
+SRCTAR=src.tar.gz
+do-installsrc:
+ cd ${.CURDIR} && git ls-tree -r HEAD --name-only | tar czf ${.OBJDIR}/$(SRCTAR) -T -
+ ${INSTALL_FILE} ${.OBJDIR}/$(SRCTAR) ${DESTDIR}/usr/src/
+.endif # defined(__MINIX)
+
#
# XXX this needs to change when distrib Makefiles are recursion compliant
# XXX many distrib subdirs need "cd etc && make snap_pre snap_kern" first...
./usr/spool/locks minix-sys
./usr/spool/lpd minix-sys
./usr/src minix-sys
+./usr/src/src.tar.gz minix-sys src
./usr/tests minix-sys
./usr/tests/atf/atf-c++/detail/auto_array_test minix-sys atf
./usr/tests/lib/libc/stdio/t_mktemp minix-sys atf
#MINIX-specific vars
_MKVARS.no+= \
- MKIMAGEONLY MKSMALL MKBITCODE
+ MKIMAGEONLY MKSMALL MKBITCODE MKSRC
.if !empty(MACHINE_ARCH:Mearm*)
_MKVARS.no+= \
MKWATCHDOG MKACPI MKAPIC MKDEBUGREG MKINSTALLBOOT MKPCI