> Hi there,
>
> with the Makefile below I want it to print "Hello" twice, when I run:
> >make test test
>
> but instead it prints:
>
> Hello
> make: Nothing to be done for `test'.
>
> Is there a way so that i can make it print "Hello" twice?
>
First I'd say this is a really strange idea, as the purpose of make is
precisely to _not_ do the same thing twice. So maybe you should reconsider
what you are trying to do... But if you really have a good reason for this, I
only see one solution:
.PHONY: hello hello-twice
hello:
@echo Hello
hello-twice:
make hello
make hello
then run 'make hello-twice'
--
Cédric Lucantis
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make