diff options
author | elliott_c <ocielliottc@users.noreply.github.com> | 2004-09-16 12:46:34 +0000 |
---|---|---|
committer | elliott_c <ocielliottc@users.noreply.github.com> | 2004-09-16 12:46:34 +0000 |
commit | fb65c2da2244c15ed5f6168aa270737d317a834d (patch) | |
tree | 5c587038218a2961d64a37b62f4d7e76a119a0c6 /modules/BMakeWorkspaceCreator.pm | |
parent | bb2e19fe2eb900067b8ddfd15d74e1b6dc6136a7 (diff) | |
download | MPC-fb65c2da2244c15ed5f6168aa270737d317a834d.tar.gz |
ChangeLogTag: Thu Sep 16 07:45:11 2004 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'modules/BMakeWorkspaceCreator.pm')
-rw-r--r-- | modules/BMakeWorkspaceCreator.pm | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/modules/BMakeWorkspaceCreator.pm b/modules/BMakeWorkspaceCreator.pm index 6fce02cc..c554b868 100644 --- a/modules/BMakeWorkspaceCreator.pm +++ b/modules/BMakeWorkspaceCreator.pm @@ -20,10 +20,22 @@ use vars qw(@ISA); @ISA = qw(WorkspaceCreator); # ************************************************************ +# Data Section +# ************************************************************ + +my(@targets) = ('clean', 'realclean', '$(CUSTOM_TARGETS)'); + +# ************************************************************ # Subroutine Section # ************************************************************ +sub crlf { + my($self) = shift; + return $self->windows_crlf(); +} + + sub workspace_file_name { my($self) = shift; if ($self->make_coexistence()) { @@ -104,6 +116,11 @@ sub write_comps { my(@list) = $self->number_target_deps($projects, $pjs, \%targnum); my($crlf) = $self->crlf(); + ## Set up the custom targets + print $fh '!ifndef CUSTOM_TARGETS', $crlf, + 'CUSTOM_TARGETS=_EMPTY_TARGET_', $crlf, + '!endif', $crlf; + ## Print out the "all" target print $fh $crlf . 'all:'; foreach my $project (@list) { @@ -112,7 +129,7 @@ sub write_comps { print $fh $crlf; ## Print out all other targets here - foreach my $target ('clean', 'realclean') { + foreach my $target (@targets) { print $fh $crlf . $target . ':' . $crlf; $self->write_project_targets($fh, $target, \@list); |