kbuild: fix build error during make htmldocs
authorAmerigo Wang <amwang@redhat.com>
Fri, 19 Jun 2009 07:06:54 +0000 (03:06 -0400)
committerSam Ravnborg <sam@ravnborg.org>
Sat, 20 Jun 2009 11:31:28 +0000 (13:31 +0200)
Fix the following build error when do 'make htmldocs':

 DOCPROC Documentation/DocBook/debugobjects.xml
exec /scripts/kernel-doc: No such file or directory
exec /scripts/kernel-doc: No such file or directory

Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: WANG Cong <amwang@redhat.com>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/basic/docproc.c

index 4c9523ef9c00d0a795862cc12e23b1eda80931d2..99ca7a698687a5a0558b987b05ffb6c581c01141 100644 (file)
@@ -385,7 +385,7 @@ int main(int argc, char *argv[])
        if (!srctree)
                srctree = getcwd(NULL, 0);
        kernsrctree = getenv("KBUILD_SRC");
-       if (!kernsrctree)
+       if (!kernsrctree || !*kernsrctree)
                kernsrctree = srctree;
        if (argc != 3) {
                usage();