ruleset not being executed

View: New views
3 Messages — Rating Filter:   Alert me  

ruleset not being executed

by Payal-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,
I have a simple makefile like this.

$ cat Makefile
.PHONY: one two

obj = foo.c bar.c car.c

one:
        @echo obj = $(obj)
        @echo new = $(subst foo, FOO, $(obj))
        @echo

two:
        @echo obj = $(obj)
        @echo new = $(patsubst %.c, %.o, $(obj))
        @echo
$ make
obj = foo.c bar.c car.c
new = FOO.c bar.c car.c



Why is ruleset "two" not executed?

With warm regards,
-Payal
--





_______________________________________________
Help-make mailing list
Help-make@...
http://lists.gnu.org/mailman/listinfo/help-make

Re: ruleset not being executed

by Philip Guenther-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Oct 13, 2009 at 11:49 PM, Payal <payal-make@...> wrote:
> I have a simple makefile like this.
>
> $ cat Makefile
> .PHONY: one two
>
> obj = foo.c bar.c car.c
>
> one:
...
> $ make
...
> Why is ruleset "two" not executed?

To quote the GNU make info pages:
----
9.2 Arguments to Specify the Goals
==================================

The "goals" are the targets that `make' should strive ultimately to
update.  Other targets are updated as well if they appear as
prerequisites of goals, or prerequisites of prerequisites of goals, etc.

   By default, the goal is the first target in the makefile (not
counting targets that start with a period).  <...>
----


Philip Guenther


_______________________________________________
Help-make mailing list
Help-make@...
http://lists.gnu.org/mailman/listinfo/help-make

Re: ruleset not being executed

by Payal-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Oct 14, 2009 at 12:10:00AM -0700, Philip Guenther wrote:
> To quote the GNU make info pages:
> ----
> 9.2 Arguments to Specify the Goals
> ==================================

sigh! I forgot the basic part. sorry!!
As a shell scripter, I am having a lot of hard time learning make.
Thanks a lot.

With warm regards,
-Payal
--



_______________________________________________
Help-make mailing list
Help-make@...
http://lists.gnu.org/mailman/listinfo/help-make