1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-26 04:23:49 +03:00
Files
samba-mirror/source/build/smb_build/main.pm
Stefan Metzmacher a94e7740d5 r7299: move the list of config.mk files to the source/
so nobody needs to look at build/smb_build/ anymore, just to use the build system

metze
2007-10-10 13:17:38 -05:00

45 lines
964 B
Perl

###########################################################
### SMB Build System ###
### - the main program ###
### ###
### Copyright (C) Stefan (metze) Metzmacher 2004 ###
### Released under the GNU GPL ###
###########################################################
use smb_build::makefile;
use smb_build::smb_build_h;
use smb_build::input;
use smb_build::config_mk;
use smb_build::output;
use smb_build::dot;
use strict;
my $config_list = "config.list";
sub smb_build_main($)
{
my $INPUT = shift;
my @mkfiles = split('\n', `grep -v ^# $config_list`);
$| = 1;
for my $mkfile (@mkfiles) {
config_mk::import_file($INPUT, $mkfile);
}
my $DEPEND = input::check($INPUT);
my $OUTPUT = output::create_output($DEPEND);
makefile::create_makefile_in($OUTPUT, "Makefile.in");
smb_build_h::create_smb_build_h($OUTPUT, "include/smb_build.h");
open DOTTY, ">samba4-deps.dot";
print DOTTY dot::generate($DEPEND);
close DOTTY;
}
1;