[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: variable describing target
From: |
Brian Dessent |
Subject: |
Re: variable describing target |
Date: |
Sun, 09 Sep 2007 20:13:32 -0700 |
Bryan Ischo wrote:
> What I really want is to be able to do something like this:
>
> ifndef PLATFORM
> ifneq ($(MAKE_TARGET),"help")
> $(error PLATFORM must be set)
> endif
> endif
I think you want $(MAKECMDGOALS).
<http://www.gnu.org/software/make/manual/html_node/Goals.html#index-MAKECMDGOALS-648>
Brian