[Top][All Lists]

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

include directory

From: Vad N
Subject: include directory
Date: Tue, 25 Mar 2008 09:54:33 +0200

I have a problem.
My makefile is:
depend : main.c
             $(CC) -M $(CPPFLAGS) $^ > $@
include depend
I type in command line:
>>make -f myMakefile
cc -M main.c > depend
make: 'depend' is up to date.
I assumed that above make produce main.o, but it did. why?
If I now the include directive add the dependencies of main.c to make file and
according to implicit rule( %.o : %.c ) make must produce main.o. I am right?

reply via email to

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