Re: kbuild: specifying phony targets?

From: Timur Tabi
Date: Fri May 20 2005 - 13:07:24 EST


Sam Ravnborg wrote:

A phony target is not possible.
But use 'always' to tell kbuild what needs to be done.
Se also kbuild documentation: Documentation/kbuild/makefile.txt

I added these lines to my makefile:

always := syscall

syscall:
@echo ${SYSCALL_METHOD}

and I got this error:

make[3]: *** No rule to make target `/root/AMSO1100/software/host/linux/sys/devccil/syscall', needed by `__build'. Stop.

I need to specify a target that is NOT a file. How can I tell kbuild that my target isn't a file, but just a rule that needs to be run?

--
Timur Tabi
Staff Software Engineer
timur.tabi@xxxxxxxxxxx

One thing a Southern boy will never say is,
"I don't think duct tape will fix it."
-- Ed Smylie, NASA engineer for Apollo 13
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/