########################################################################
# Copyright (c) VIX TECHNOLOGY (AUST) LTD
# Module name   : makefile.pl
# Module type   : JATS Makefile
# Environment(s): JATS Build System
#
# Description   : Makefile for Release_Manager
#
#......................................................................#
#
# exec build system
#
die "Usage: Makefile.pl rootdir Makelib.pl\n" unless( $#ARGV+1 >= 2 );
require "$ARGV[1]";

#
# Build platform definitions ..
#
Platform( '*' );

GenerateFiles ('*', 'jats_transform_file',
                    '--NoVarTag',
                    '-infile=--Prerequisite(../web/_about.template)',
                    '-outfile=--GeneratedCommon(../web/_about.asp)',
                    '-tag=__NAME__,--Var(BuildName)',
                    '-tag=__VERSION__,--Var(BuildVersion)',
                    '-tag=__VERSIONNUM__,--Var(BuildVersionNum)',
                );



############################################################################
#   Define the source files
#

#.............................................................................
# Packaging definitions
#
PackageFile ( '*', '--DirTree=../web', '--StripDir', 
                   '--FilterOut=_about.template',
                   '--FilterOut=/archive/',
                   '--Prod', '--Prefix=etc' );
PackageFile ( '*', '_about.asp', '--Prefix=etc' );
PackageFile ( '*', 'descpkg' );

#.............................................................................
# Finally generate the makefile
#
MakefileGenerate();

#..  Successful termination
1;
