Lines Matching refs:srcdir
72 char *srcdir;
434 p2->srcdir = NULL;
533 } else if (!strcmp(argv[2], "srcdir")) {
536 if ((p->srcdir = strdup(argv[3])) == NULL)
650 if (!p->srcdir) {
651 p->srcdir = dir_search(p->name);
654 /* Determine the actual srcdir (maybe symlinked). */
655 if (p->srcdir) {
656 snprintf(line, MAXLINELEN, "cd %s && pwd -P", p->srcdir);
667 errx(1, "Can't perform pwd on: %s\n", p->srcdir);
678 if (!makeobj && !p->objdir && p->srcdir) {
701 if (p->srcdir)
702 snprintf(path, sizeof(path), "%s/Makefile", p->srcdir);
703 if (!p->objs && p->srcdir && is_nonempty_file(path))
706 if (!p->srcdir && !p->objdir && verbose)
714 if ((!p->srcdir || !p->objdir) && !p->objs)
728 /* discover the objs from the srcdir Makefile */
772 p->srcdir, path_make, tempfname, p->ident);
780 p->srcdir, path_make, tempfname);
862 if (p->srcdir)
863 fprintf(cachef, "special %s srcdir %s\n",
864 p->name, p->srcdir);
986 char *srcdir;
993 if ((srcdir = strdup(path)) == NULL)
996 return srcdir;
1087 if (p->srcdir && p->objs) {
1088 fprintf(outmk, "%s_SRCDIR=%s\n", p->ident, p->srcdir);