* kbuild: specifying phony targets?
@ 2005-05-18 14:11 Timur Tabi
2005-05-20 5:37 ` Sam Ravnborg
0 siblings, 1 reply; 3+ messages in thread
From: Timur Tabi @ 2005-05-18 14:11 UTC (permalink / raw)
To: linux-kernel
I have a Makefile that works with 2.4 and 2.6 kernels. On the 2.4 side, I have a rule
like this:
all: mytext ${TARGET_DIR} ${TARGET_DIR}/ccil.o
mytext:
@echo ${SOMETEXT}
This causes the text in variable SOMETEXT to be displayed right when the build starts.
How do I do the same thing with kbuild? Is there a way I can get a kbuild makefile to run
a phony target right at the beginning?
--
Timur Tabi
Staff Software Engineer
timur.tabi@ammasso.com
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
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: kbuild: specifying phony targets?
2005-05-18 14:11 kbuild: specifying phony targets? Timur Tabi
@ 2005-05-20 5:37 ` Sam Ravnborg
2005-05-20 18:03 ` Timur Tabi
0 siblings, 1 reply; 3+ messages in thread
From: Sam Ravnborg @ 2005-05-20 5:37 UTC (permalink / raw)
To: linux-kernel
On Wed, May 18, 2005 at 09:11:01AM -0500, Timur Tabi wrote:
> I have a Makefile that works with 2.4 and 2.6 kernels. On the 2.4 side, I
> have a rule like this:
>
> all: mytext ${TARGET_DIR} ${TARGET_DIR}/ccil.o
>
> mytext:
> @echo ${SOMETEXT}
>
> This causes the text in variable SOMETEXT to be displayed right when the
> build starts.
>
> How do I do the same thing with kbuild? Is there a way I can get a kbuild
> makefile to run a phony target right at the beginning?
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
Sam
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: kbuild: specifying phony targets?
2005-05-20 5:37 ` Sam Ravnborg
@ 2005-05-20 18:03 ` Timur Tabi
0 siblings, 0 replies; 3+ messages in thread
From: Timur Tabi @ 2005-05-20 18:03 UTC (permalink / raw)
To: Sam Ravnborg; +Cc: linux-kernel
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@ammasso.com
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-05-20 18:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-18 14:11 kbuild: specifying phony targets? Timur Tabi
2005-05-20 5:37 ` Sam Ravnborg
2005-05-20 18:03 ` Timur Tabi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox