File: make.pl

package info (click to toggle)
doxygen 1.4.2-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 14,816 kB
  • ctags: 22,819
  • sloc: cpp: 195,164; ansic: 30,489; lex: 19,840; sh: 1,661; python: 1,183; perl: 1,034; makefile: 451; yacc: 235
file content (39 lines) | stat: -rwxr-xr-x 918 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# make script used to create a config file for windows

$target = shift @ARGV;
$make   = "make";
if ($target eq "msvc") 
{
  $make = "nmake";
}

use Cwd;

# get current working directory
$pwd=cwd();

# work-around slashes problems for nmake
if ($target eq "msvc") 
{
  $pwd=~s{/}{\\}g;
}

# create config file
open(FILE,">makeconfig") || die "Cannot create file makeconfig!";

print FILE "DOXYGEN   = \"$pwd\"\n";
print FILE "TMAKEPATH = \"$pwd\\tmake\\lib\\win32-$target\"\n";
print FILE "TMAKE     = \"$pwd\\tmake\\bin\\tmake\"\n";
print FILE "MAKE      = $make\n";
print FILE "PERL      = perl\n";
print FILE "RM        = del /s /q\n";
print FILE "CP        = copy\n";
print FILE "VERSION   = ";

# copy contents of VERSION file to FILE
open(VERFILE,"<VERSION") || die "Cannot open file VERSION for reading!";
while (<VERFILE>) {
  print FILE $_;
}
close VERFILE;
close FILE;