Re: Question about variables in a makefile

From: Dan Espen (daneNO_at_SPAM.mk.telcordia.com)
Date: 03/08/04


Date: Mon, 08 Mar 2004 11:38:32 -0500

Madhusudan Singh <spammers-go-here@yahoo.com> writes:

> On Friday 05 March 2004 18:03, Dan Espen (daneNO@SPAM.mk.telcordia.com)
> held forth in comp.os.linux.misc (<icwu5ysxqs.fsf@home-1.localdomain>):
>
>
>> You don't have to be admin to install gnumake.
>> I believe gnumake is on the Solaris installation CDs.
>> Your admin should have no problem installing stuff packaged by Sun.
>
> Hi,
>
> Thanks for all the help. I was able to get my Makefile to work with gmake
> (found an obscure path on the Sun installation that contains it).
>
> I have a new question now. Is there a way to detect the string that is
> passed to the make ?
>
> Like :
>
> make -f Makefile string ?
>
> The reason I need to know this is that for a different target, my build
> rules change somewhat and when I try to define them under a different
> target, make complains due to ambiguity. So, I was thinking of using a
> variable to hold the options for f95 predicated upon an ifeq construct.

I'm not sure I understand.

For varying my rules, I do something like this:

gmake targ=debug

In the makefile:

ifeq "$(targ)" "debug"
...
else
...
endif



Relevant Pages

  • Re: sysinstall nigthmare
    ... Only if you're looking for job security. ... Ease of installation means something quite different for the big farm ... admin who has to care for a thousand machines than for the home user who ... long will the script be if you want to have many different ports? ...
    (comp.unix.bsd.freebsd.misc)
  • Practise Tests From MCSA/MCSE Microsoft Training Kit. Does Anyone Else Find Faulty Questions?
    ... Admin shuts down stand alone servers to install hardware. ... Admin should reconfigure domain GPO and set Unsigned Driver Installation ... Behavior policy to Warn But Allow Installation. ...
    (microsoft.public.cert.exam.mcsa)
  • Re: two more question of advertisement
    ... then you can create an Admin share... ... MSI ... Now if you specify admin share as your package source then after the ... installation on end-user's machine, end-user will not have to give a product ...
    (microsoft.public.sms.swdist)
  • Re: Poweredge server powering down by itself using SBS 2003
    ... I was replaced at a company by the new admin, among other thngs he told them ... >>> server from a workstation to a domain controller? ... how do we finish the installation without ... > left this idiot of a boss and he can't figure out why the Pop connector is ...
    (microsoft.public.windows.server.sbs)
  • Re: Ask EU: wireless connection
    ... If I leave the AVG Mail Scanner on, I can't access any POP mail ... But now that I've turned off admin privilege for the identity I ... Any software installation requires admin privileges, ...
    (uk.media.radio.archers)