[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Using Default
From: |
Eric Brown |
Subject: |
Using Default |
Date: |
Wed, 7 Feb 2001 17:27:57 -0800 |
Can anyone give me a better example of how the Default command works? I'm
trying to set up cons to install files as part of a post-processing pass.
So my Conscript has
$wantinstall = "";
while ($_ = shift(@ARGV)) {
$wantinstall = 1 if $_ =~ /-inst(all)?/i;
}
if ($wantinstall) {
Default 'install';
}
else
{
Default 'export';
Export qw(CONS INCLUDE LIB BIN BUILD BUILDTYPE EXPORT DEFINES WCEPROCESSOR);
$CONSBASE = new cons();
@PROCESSORS = qw(
x86em
SH3
ARM
);
@SUBDIRS = qw(
apps
common
);
map(BuildConfig($_),@types);
}
Now, when I don't specify anything, everything builds great. But when I run
cons -- -install, all I get is
cons.bat: Nothing to build.
cons.bat: "install" is up-to-date.
So what *exactly* does Default do?
- Using Default,
Eric Brown <=