Install sources with MKSRC=yes
Change-Id: Iee433cfe6796af0ea292c7eadff365a32059a609
This commit is contained in:
parent
4193f2292e
commit
fad76abe45
3 changed files with 14 additions and 1 deletions
12
Makefile
12
Makefile
|
@ -254,6 +254,11 @@ BUILDTARGETS+= do-x11
|
||||||
.if ${MKEXTSRC} != "no"
|
.if ${MKEXTSRC} != "no"
|
||||||
BUILDTARGETS+= do-extsrc
|
BUILDTARGETS+= do-extsrc
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
.if defined(__MINIX) && ${MKSRC} == "yes"
|
||||||
|
BUILDTARGETS+= do-installsrc
|
||||||
|
.endif # defined(__MINIX)
|
||||||
|
|
||||||
BUILDTARGETS+= do-obsolete
|
BUILDTARGETS+= do-obsolete
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -551,6 +556,13 @@ install-${dir}: .PHONY
|
||||||
@true
|
@true
|
||||||
.endfor
|
.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 this needs to change when distrib Makefiles are recursion compliant
|
||||||
# XXX many distrib subdirs need "cd etc && make snap_pre snap_kern" first...
|
# XXX many distrib subdirs need "cd etc && make snap_pre snap_kern" first...
|
||||||
|
|
|
@ -5717,6 +5717,7 @@
|
||||||
./usr/spool/locks minix-sys
|
./usr/spool/locks minix-sys
|
||||||
./usr/spool/lpd minix-sys
|
./usr/spool/lpd minix-sys
|
||||||
./usr/src minix-sys
|
./usr/src minix-sys
|
||||||
|
./usr/src/src.tar.gz minix-sys src
|
||||||
./usr/tests minix-sys
|
./usr/tests minix-sys
|
||||||
./usr/tests/atf/atf-c++/detail/auto_array_test minix-sys atf
|
./usr/tests/atf/atf-c++/detail/auto_array_test minix-sys atf
|
||||||
./usr/tests/lib/libc/stdio/t_mktemp minix-sys atf
|
./usr/tests/lib/libc/stdio/t_mktemp minix-sys atf
|
||||||
|
|
|
@ -1117,7 +1117,7 @@ _MKVARS.no= \
|
||||||
|
|
||||||
#MINIX-specific vars
|
#MINIX-specific vars
|
||||||
_MKVARS.no+= \
|
_MKVARS.no+= \
|
||||||
MKIMAGEONLY MKSMALL MKBITCODE
|
MKIMAGEONLY MKSMALL MKBITCODE MKSRC
|
||||||
.if !empty(MACHINE_ARCH:Mearm*)
|
.if !empty(MACHINE_ARCH:Mearm*)
|
||||||
_MKVARS.no+= \
|
_MKVARS.no+= \
|
||||||
MKWATCHDOG MKACPI MKAPIC MKDEBUGREG MKINSTALLBOOT MKPCI
|
MKWATCHDOG MKACPI MKAPIC MKDEBUGREG MKINSTALLBOOT MKPCI
|
||||||
|
|
Loading…
Reference in a new issue