Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/sets - add makesrctars and sourcesets targets (latte...



details:   https://anonhg.NetBSD.org/src/rev/9d7e63953619
branches:  trunk
changeset: 546966:9d7e63953619
user:      lukem <lukem%NetBSD.org@localhost>
date:      Sat May 10 06:08:12 2003 +0000

description:
- add makesrctars and sourcesets targets (latter just invokes former)
- use ${HOST_SH} instead of sh

diffstat:

 distrib/sets/Makefile |  23 ++++++++++++++++-------
 1 files changed, 16 insertions(+), 7 deletions(-)

diffs (76 lines):

diff -r 0f8a437436b5 -r 9d7e63953619 distrib/sets/Makefile
--- a/distrib/sets/Makefile     Sat May 10 06:07:26 2003 +0000
+++ b/distrib/sets/Makefile     Sat May 10 06:08:12 2003 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.24 2003/01/30 12:16:18 lukem Exp $
+#      $NetBSD: Makefile,v 1.25 2003/05/10 06:08:12 lukem Exp $
 
 # The `all' target must appear before bsd.own.mk is pulled in.
 all:
@@ -10,7 +10,7 @@
 
 SETSENV=       DESTDIR=${DESTDIR:Q} \
                MACHINE=${MACHINE:Q} MACHINE_ARCH=${MACHINE_ARCH:Q} \
-               MAKE=${MAKE:Q} MTREE=${MTREE:Q} PAX=${PAX:Q} 
+               CKSUM=${CKSUM:Q} MAKE=${MAKE:Q} MTREE=${MTREE:Q} PAX=${PAX:Q} 
 
 print_machine: .PHONY
        @echo ${MACHINE}
@@ -36,7 +36,7 @@
 
 # This target has debugging value only, really.
 makeflist: .PHONY check_DESTDIR
-       ${SETSENV} sh ${.CURDIR}/makeflist
+       ${SETSENV} ${HOST_SH} ${.CURDIR}/makeflist
 
 #
 # SET BUILDING TARGETS
@@ -44,11 +44,11 @@
 
 .PRECIOUS: checkflist
 checkflist: check_DESTDIR
-       ${SETSENV} sh ${.CURDIR}/checkflist ${UNPRIVED:D-M ${METALOG}}
+       ${SETSENV} ${HOST_SH} ${.CURDIR}/checkflist ${UNPRIVED:D-M ${METALOG}}
 
 .PRECIOUS: checkflist-x11
 checkflist-x11: check_DESTDIR
-       ${SETSENV} sh ${.CURDIR}/checkflist -x11
+       ${SETSENV} ${HOST_SH} ${.CURDIR}/checkflist -x11
 
 .PRECIOUS: maketars
 maketars: check_DESTDIR check_RELEASEDIR
@@ -56,10 +56,16 @@
        ${MAKE} checkflist
 .endif
        mkdir -p ${RELEASEDIR}/${MACHINE}/binary/sets
-       ${SETSENV} sh ${.CURDIR}/maketars -d ${DESTDIR:S,^$,/,} \
+       ${SETSENV} ${HOST_SH} ${.CURDIR}/maketars -d ${DESTDIR:S,^$,/,} \
            ${UNPRIVED:D-M ${METALOG}} -N ${NETBSDSRCDIR}/etc \
            -t ${RELEASEDIR}/${MACHINE}/binary/sets ${MAKETARSETS}
 
+.PRECIOUS: makesrctars
+makesrctars: check_RELEASEDIR
+       mkdir -p ${RELEASEDIR}/source/sets
+       ${SETSENV} ${HOST_SH} ${.CURDIR}/makesrctars \
+           ${NETBSDSRCDIR} ${RELEASEDIR}/source/sets
+
 .PRECIOUS: makesums
 makesums: check_RELEASEDIR
        ${SETSENV} ${MAKESUMS} -t ${RELEASEDIR}/${MACHINE}/binary/sets
@@ -70,7 +76,7 @@
        @echo "setenv INSTALLDIR before doing that!"
        @false
 .endif
-       ${SETSENV} sh ${.CURDIR}/maketars -d ${DESTDIR:S,^$,/,} \
+       ${SETSENV} ${HOST_SH} ${.CURDIR}/maketars -d ${DESTDIR:S,^$,/,} \
            ${UNPRIVED:D-M ${METALOG}} -N ${NETBSDSRCDIR}/etc \
            -i ${INSTALLDIR} ${INSTALLSETS}
 
@@ -81,4 +87,7 @@
 sets: maketars .WAIT makesums
        @true
 
+sourcesets: makesrctars
+       @true
+
 .include <bsd.sys.mk>



Home | Main Index | Thread Index | Old Index