| 5509 |
dpurdie |
1 |
# Copyright (c) VIX TECHNOLOGY (AUST) LTD
|
| 2 |
rsolanki |
2 |
#
|
|
|
3 |
# Module name : Makefile.pl
|
|
|
4 |
# Module type : Makefile system
|
|
|
5 |
# Compiler(s) : ANSI C
|
|
|
6 |
# Environment(s): n/a
|
|
|
7 |
#
|
| 5509 |
dpurdie |
8 |
# Description: makefile.pl for package Release_Manager
|
| 2 |
rsolanki |
9 |
#
|
|
|
10 |
#.........................................................................#
|
|
|
11 |
|
|
|
12 |
die "Usage: Makefile.pl rootdir Makelib.pl\n"
|
|
|
13 |
unless( $#ARGV+1 >= 2 );
|
|
|
14 |
require "$ARGV[1]";
|
|
|
15 |
|
|
|
16 |
#
|
|
|
17 |
# Build platform definitions ..
|
|
|
18 |
#
|
|
|
19 |
Platform( '*' );
|
|
|
20 |
|
| 3943 |
dpurdie |
21 |
GenerateFiles ('*', 'jats_transform_file',
|
|
|
22 |
'--NoVarTag',
|
|
|
23 |
'-infile=--Prerequisite(_about.template)',
|
|
|
24 |
'-outfile=--GeneratedCommon(_about.asp)',
|
|
|
25 |
'-tag=__NAME__,--Var(BuildName)',
|
|
|
26 |
'-tag=__VERSION__,--Var(BuildVersion)',
|
|
|
27 |
'-tag=__VERSIONNUM__,--Var(BuildVersionNum)',
|
|
|
28 |
);
|
|
|
29 |
|
|
|
30 |
|
| 5509 |
dpurdie |
31 |
|
| 2 |
rsolanki |
32 |
############################################################################
|
|
|
33 |
# Define the source files
|
|
|
34 |
#
|
|
|
35 |
|
|
|
36 |
#.............................................................................
|
|
|
37 |
# Packaging definitions
|
|
|
38 |
#
|
| 5509 |
dpurdie |
39 |
PackageFile ( '*', '--DirTree=.',
|
|
|
40 |
'--FilterOut=.jats.packageroot',
|
|
|
41 |
'--FilterOut=descpkg',
|
|
|
42 |
'--FilterOut=Makefile.gbe',
|
|
|
43 |
'--FilterOut=GENERIC.mk',
|
|
|
44 |
'--FilterOut=makefile.pl',
|
|
|
45 |
'--FilterOut=/\.svn/',
|
|
|
46 |
'--FilterOut=jats_metrics.dat',
|
|
|
47 |
'--FilterOut=_about.template',
|
|
|
48 |
'--FilterOut=/build/',
|
|
|
49 |
'--FilterOut=/archive/',
|
|
|
50 |
'--FilterOut=.*\.bak',
|
|
|
51 |
'--FilterOut=local_dpkg_archive',
|
|
|
52 |
'--Prod', '--Prefix=etc' );
|
| 3943 |
dpurdie |
53 |
PackageFile ( '*', '_about.asp', '--Prefix=etc' );
|
| 2 |
rsolanki |
54 |
|
|
|
55 |
#..
|
|
|
56 |
#
|
|
|
57 |
Src ( '*' , 'descpkg' );
|
|
|
58 |
PackageFile ( '*' , 'descpkg' );
|
|
|
59 |
|
|
|
60 |
#.............................................................................
|
|
|
61 |
# Finally generate the makefile
|
|
|
62 |
#
|
|
|
63 |
MakefileGenerate();
|
|
|
64 |
|
|
|
65 |
#.. Successful termination
|
|
|
66 |
1;
|