mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Oops, cope if the dependency list is empty
svn path=/trunk/; revision=1692
This commit is contained in:
parent
c3c30d0692
commit
a068c65d79
2 changed files with 8 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
# $Id: Makefile,v 1.20 2001/03/15 18:37:29 dwelch Exp $
|
# $Id: Makefile,v 1.21 2001/03/15 18:49:17 dwelch Exp $
|
||||||
#
|
#
|
||||||
# ReactOS Operating System
|
# ReactOS Operating System
|
||||||
#
|
#
|
||||||
|
@ -579,7 +579,7 @@ include $(D1_FILES)
|
||||||
$(CC) $(CFLAGS) -M $< | $(EXE_PREFIX)depends$(EXE_POSTFIX) $(@D) > $@
|
$(CC) $(CFLAGS) -M $< | $(EXE_PREFIX)depends$(EXE_POSTFIX) $(@D) > $@
|
||||||
|
|
||||||
.%.d: %.S
|
.%.d: %.S
|
||||||
$(CC) $(CFLAGS) -M $< | $(EXE_PREFIX)depends$(EXE_POSTFIX) $(@D)
|
$(CC) $(CFLAGS) -M $< | $(EXE_PREFIX)depends$(EXE_POSTFIX) $(@D) > $@
|
||||||
|
|
||||||
include $(PATH_TO_TOP)/rules.mak
|
include $(PATH_TO_TOP)/rules.mak
|
||||||
|
|
||||||
|
|
|
@ -20,13 +20,18 @@ int main(int argc, char* argv[])
|
||||||
}
|
}
|
||||||
|
|
||||||
i = 0;
|
i = 0;
|
||||||
while ((ch = fgetc(stdin)) != ':')
|
while ((ch = fgetc(stdin)) != ':' && ch != EOF)
|
||||||
{
|
{
|
||||||
buf[i] = ch;
|
buf[i] = ch;
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
buf[i] = 0;
|
buf[i] = 0;
|
||||||
|
|
||||||
|
if (i == 0)
|
||||||
|
{
|
||||||
|
return(0);
|
||||||
|
}
|
||||||
|
|
||||||
dot = strrchr(buf, '.');
|
dot = strrchr(buf, '.');
|
||||||
if (dot != NULL)
|
if (dot != NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue