Re: Using make
From: Chuck Dillon (spam_at_nimblegen.com)
Date: 03/29/05
- Next message: Bill Marcum: "Re: A simple bash script"
- Previous message: Måns Rullgård: "Re: Hash tables"
- In reply to: shakahshakah_at_gmail.com: "Re: Using make"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 29 Mar 2005 12:11:44 -0600
shakahshakah@gmail.com wrote:
>
>
> Why doesn't make complain about "No rule to make target 'test'",
> though?
> Does make pick up a default ".c => (no extension)" rule?
Somehow I failed to address the OP's specific question. Must have been
an off day.
Yes it tries to match the request via implicit rules. See the make
manpage on Solaris for the strategy it uses. It knows that .c files
beget .o files which beget executables. test.c is in the dependency
tree so when you ask to make test it guesses you want to make an
executable out of test.c. You can also do 'make test.o' and it will do
the right thing.
-- ced
-- Chuck Dillon Senior Software Engineer NimbleGen Systems Inc.
- Next message: Bill Marcum: "Re: A simple bash script"
- Previous message: Måns Rullgård: "Re: Hash tables"
- In reply to: shakahshakah_at_gmail.com: "Re: Using make"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|