html.mk

static html creation framework using make(1) and cpp(1)
git clone git://0x30.net/html.mk
Log | Files | Refs | README | LICENSE

srcs_empty.t (451B)


      1 #
      2 # When the SRCS array is empty, html.mk does nothing.
      3 #
      4 use Modern::Perl;
      5 use Test::Cmd;
      6 use Test::More tests => 3;
      7 
      8 
      9 my $cmd = Test::Cmd->new( prog => '/usr/bin/make', workdir => '' );
     10 my $html_mk = $cmd->here . "/bsd.html.mk";
     11 
     12 $cmd->write( 'Makefile', <<EOF );
     13 SRCS=
     14 .include "$html_mk"
     15 EOF
     16 
     17 $cmd->run( chdir => $cmd->curdir );
     18 is( $cmd->stdout, 	'',	'make stdout' );
     19 is( $cmd->stderr,	'',	'make stderr' );
     20 is( $? >> 8,		0,	'make exit status' );