Home | History | Annotate | Line # | Download | only in dotcmd
Makefile revision 1.2.2.2
      1  1.2.2.2  tls # $NetBSD: Makefile,v 1.2.2.2 2014/08/10 06:57:02 tls Exp $
      2  1.2.2.2  tls #
      3  1.2.2.2  tls 
      4  1.2.2.2  tls .include <bsd.own.mk>
      5  1.2.2.2  tls 
      6  1.2.2.2  tls TESTSDIR = ${TESTSBASE}/bin/sh/dotcmd
      7  1.2.2.2  tls 
      8  1.2.2.2  tls TESTS_SH = t_dotcmd
      9  1.2.2.2  tls 
     10  1.2.2.2  tls FILESDIR = ${TESTSDIR}/out
     11  1.2.2.2  tls 
     12  1.2.2.2  tls # Testing scripts: dotcmd in various scopes includes a file with
     13  1.2.2.2  tls # return / break / continue in various scopes.
     14  1.2.2.2  tls #
     15  1.2.2.2  tls .for cmd_scope in case compound file for func subshell until while
     16  1.2.2.2  tls . for cmd in return break continue
     17  1.2.2.2  tls FILES += ${cmd}_${cmd_scope}
     18  1.2.2.2  tls FILESDIR_${cmd}_${cmd_scope} = ${TESTSDIR}
     19  1.2.2.2  tls FILESBUILD_${cmd}_${cmd_scope} = yes
     20  1.2.2.2  tls 
     21  1.2.2.2  tls ${cmd}_${cmd_scope}: scoped_command
     22  1.2.2.2  tls 	${HOST_SH} ${.CURDIR}/scoped_command '${cmd_scope}' '${cmd}' '${cmd}' \
     23  1.2.2.2  tls 		>'${.TARGET}'
     24  1.2.2.2  tls 
     25  1.2.2.2  tls .  for dot_scope in case compound file for func subshell until while
     26  1.2.2.2  tls FILES += \
     27  1.2.2.2  tls 	${dot_scope}_${cmd}_${cmd_scope} \
     28  1.2.2.2  tls 	out/${dot_scope}_${cmd}_${cmd_scope}.out
     29  1.2.2.2  tls FILESDIR_${dot_scope}_${cmd}_${cmd_scope} = ${TESTSDIR}
     30  1.2.2.2  tls FILESBUILD_${dot_scope}_${cmd}_${cmd_scope} = yes
     31  1.2.2.2  tls FILESMODE_${dot_scope}_${cmd}_${cmd_scope} = ${BINMODE}
     32  1.2.2.2  tls 
     33  1.2.2.2  tls ${dot_scope}_${cmd}_${cmd_scope}: scoped_command
     34  1.2.2.2  tls 	${HOST_SH} ${.CURDIR}/scoped_command '${dot_scope}' \
     35  1.2.2.2  tls 		'. "${cmd}_${cmd_scope}"' 'dotcmd' 'dotcmd' >'${.TARGET}'
     36  1.2.2.2  tls .  endfor
     37  1.2.2.2  tls . endfor
     38  1.2.2.2  tls .endfor
     39  1.2.2.2  tls 
     40  1.2.2.2  tls .include <bsd.test.mk>
     41