bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: File list hash not updated (FAT32 problem)


From: Doug Shea
Subject: RE: File list hash not updated (FAT32 problem)
Date: Fri, 25 Jan 2002 10:22:15 -0800


    An update to this... I believe I've found the problem: it doesn't work when run on files in a FAT32 filesystem. I've made a sample makefile, below. This makefile breaks on Win98 or Win2k, using the 3.77 and 3.79.1 gmakes, on FAT32; when the 2000's filesystem is converted to NTFS, then it works.

SRC    = file1.c file2.c file3.c file4.c
OBJ    = $(patsubst %.c,%.o,$(SRC))

VPATH  = src

final.exe:      src/file3.c $(OBJ)
        echo $(OBJ) > $@

%.o:    %.c
        echo $< > $@

src/file3.c:
        echo data > src\file3.c
        echo data > src\file4.c

clean:
        del *.o
        del final.exe
        del src\file3.c
        del src\file4.c

        Create a subdir called 'src', with two files called 'file1.c' and 'file2.c'. You can see the makefile creates 'file3.c' and 'file4.c' in the 'src' directory, and then tries to "compile" them all and then "link" 'final.exe'. This will work on NTFS, and not on FAT32.

        Is this known and/or expected behavior? Is there something in the makefile that I should be doing to make it officially 'see' the new files in the 'src' dir? Thanks!

--
Doug Shea
Configuration Manager - WIDCOMM, Inc
(858) 795-3425
http://www.widcomm.com/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]