# license that can be found in the LICENSE file.
# Run go tool dist to install a command.
+# The -v causes dist to print the name of each directory as it runs.
# The -vv causes dist to print each build command as it runs.
# go tool dist clean cleans all directories, not just this one,
# but it's as close as we can get.
# Default target (first).
install:
+ go tool dist install -v
+
+verbose:
go tool dist install -vv
clean:
Time ttarg, t;
int i, j, k, n, doclean;
+ if(vflag)
+ xprintf("%s\n", dir);
+
binit(&b);
binit(&b1);
binit(&path);
{
int i;
Buf b;
- char *p;
ARGBEGIN{
case 'v':
setup();
binit(&b);
- for(i=0; i<nelem(buildorder); i++) {
- p = bprintf(&b, buildorder[i], gochar);
- if(vflag > 0)
- xprintf("%s\n", p);
- install(p);
- }
+ for(i=0; i<nelem(buildorder); i++)
+ install(bprintf(&b, buildorder[i], gochar));
bfree(&b);
}