Subversion Repositories svn1-original

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 root 1
$env = new cons( CC      => 'gcc',
2
                 CFLAGS  => '-mno-cygwin -Wall',
3
                 LDFLAGS => '-mno-cygwin',
4
                 ISCC    => '/cygdrive/c/Program\ Files/Inno\ Setup\ 4/iscc.exe' );
5
 
6
Program $env 'mara', qw(check.c config.c dcheck.c disqual.c legtime.c
7
                        mara.c  menudrv.c print.c report.c teamupd.c times.c
8
                        upload.c vduW32.c );
9
#
10
#   My own method to create a setup.exe for a program
11
#   Use as:
12
#       InstallScript $env <destination>, <name>
13
#
14
#       Where:
15
#           destination is the name of the target setup.exe
16
#           name        is the base name of the .exe to be installed
17
#                       and the .iss install script
18
#
19
sub cons::InstallScript {
20
        my ($env, $dst, $name) = @_;
21
#        print "InstallScript: $dst , $name\n";
22
        $script = $name . '.iss';
23
        $exe = $name . '.exe';
24
        $dummy = '__' . $script;
25
        Command $env $dst, $exe, $script , qq(cp $script $dummy; %ISCC $dummy; rm $dummy);
26
  }
27
 
28
InstallScript $env 'setup.exe' , 'mara' ;
29
 
30
Default 'mara';