On Mon, 2011-11-14 at 15:14 -0500, Marc Smith wrote:
> I guess for maintenance reasons -- storing a shell command in a
> variable makes it easier to take care of if that shell command ever
> changes; that way I won't have to update the same shell command in X
> places. I can just modify it in one spot.

No one said you shouldn't use a variable.  By all means, DO use a
variable.  That's good stuff.

Just don't use the $(shell ...) function.

Like this:

        SHOWTIME = date
        all:
                @ $(SHOWTIME)
                @ sleep 10
                @ $(SHOWTIME)

Cheers!


_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to