diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-06-06 01:22:57 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:17:41 -0500 |
commit | 8ee772712c1a81f0490bcabc6843efd8e2527305 (patch) | |
tree | df2e7320c0083d9e9fbfaf8a6d6382ccff0866b9 /source4/build/smb_build/input.pm | |
parent | c8b8212a83c43e6629432dc33402c3897a253493 (diff) | |
download | samba-8ee772712c1a81f0490bcabc6843efd8e2527305.tar.gz samba-8ee772712c1a81f0490bcabc6843efd8e2527305.tar.bz2 samba-8ee772712c1a81f0490bcabc6843efd8e2527305.zip |
r7315: Add support for custom makefile targets, e.g.:
[TARGET::FOOBAR]
CMD = make bla
(This used to be commit 65600536b614e4cc1449488fa3297c1e6a2e4053)
Diffstat (limited to 'source4/build/smb_build/input.pm')
-rw-r--r-- | source4/build/smb_build/input.pm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source4/build/smb_build/input.pm b/source4/build/smb_build/input.pm index e8d98d060b..aeab3cb8a6 100644 --- a/source4/build/smb_build/input.pm +++ b/source4/build/smb_build/input.pm @@ -116,6 +116,18 @@ sub check_library($$) $lib->{OUTPUT_TYPE} = "SHARED_LIBRARY"; } +sub check_target($$) +{ + my $INPUT = shift; + my $bin = shift; + + if (!defined($bin->{CMD})) { + print "CMD not defined for target!\n"; + } + + $bin->{OUTPUT_TYPE} = "CUSTOM"; +} + sub check_binary($$) { my $INPUT = shift; @@ -173,6 +185,7 @@ sub check($) check_module($INPUT, $part) if ($part->{TYPE} eq "MODULE"); check_library($INPUT, $part) if ($part->{TYPE} eq "LIBRARY"); check_binary($INPUT, $part) if ($part->{TYPE} eq "BINARY"); + check_target($INPUT, $part) if ($part->{TYPE} eq "TARGET"); #FIXME: REQUIRED_LIBRARIES needs to go if (defined($part->{REQUIRED_LIBRARIES})) { |