[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Makefile not correctly rebuilding project
From: |
Greg Chicares |
Subject: |
Re: Makefile not correctly rebuilding project |
Date: |
Mon, 07 Jun 2010 12:06:04 +0000 |
User-agent: |
Thunderbird 2.0.0.24 (Windows/20100228) |
On 2010-06-07 10:52Z, Alex Buell wrote:
>
> $ more assembler/vasm.d
> vasm.o: assembler/vasm.c /usr/include/stdio.h /usr/include/features.h \
Could that file have been generated by something other than the following?
> %.d: %.c
> $(CC) -M $(CFLAGS) $< > address@hidden; \
> $(SED) 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < address@hidden > $@; \
> rm -f address@hidden
Wouldn't the sed command produce
vasm.o vasm.d : assembler/vasm.c /usr/include/stdio.h /usr/include/features.h
\
with two filenames before the colon, instead of
vasm.o: assembler/vasm.c /usr/include/stdio.h /usr/include/features.h \
?
And do you really want
assembler/vasm.o assembler/vasm.d : assembler/vasm.c [...]
instead?