% mkdir obj
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Mon, 3 Jan 1994 07:06:33 +0000 (23:06 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Mon, 3 Jan 1994 07:06:33 +0000 (23:06 -0800)
% touch foo.c README
% cat Makefile
all :: foo.c README
echo ${.OODATE}
Notice that it expands the path for the .c file, but not for README.
This is because the search path for the null suffix is empty and it
should be the default search path.
From: christos@deshaw.com (Christos Zoulas)

SCCS-vsn: usr.bin/make/suff.c 8.2

usr/src/usr.bin/make/suff.c

index ef46763..0073b09 100644 (file)
@@ -2079,6 +2079,7 @@ Suff_Init ()
     suffNull->name =               strdup ("");
     suffNull->nameLen =     0;
     suffNull->searchPath =  Lst_Init (FALSE);
     suffNull->name =               strdup ("");
     suffNull->nameLen =     0;
     suffNull->searchPath =  Lst_Init (FALSE);
+    Dir_Concat(suffNull->searchPath, dirSearchPath);
     suffNull->children =    Lst_Init (FALSE);
     suffNull->parents =            Lst_Init (FALSE);
     suffNull->sNum =               sNum++;
     suffNull->children =    Lst_Init (FALSE);
     suffNull->parents =            Lst_Init (FALSE);
     suffNull->sNum =               sNum++;