1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00
Stefan Metzmacher ae66cc5ef7 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
(This used to be commit a94e7740d554a18b5e9ae37bdcabec8ccc5705fc)
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;