bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Use $(MKDIR_P) instead of @MKDIR_P@


From: Ralf Wildenhues
Subject: Re: Use $(MKDIR_P) instead of @MKDIR_P@
Date: Sat, 26 Sep 2009 12:43:06 +0200
User-agent: Mutt/1.5.20 (2009-08-09)

Hi Bruno,

* Bruno Haible wrote on Tue, Sep 01, 2009 at 10:37:49AM CEST:
> I can see that in rare, rare cases, since MKDIR_P is a command, people
> may want to use different versions of it. But for things like @LIBINTL@
> and @LIBSOCKET@, it is still better to write them as @LIBINTL@, not 
> $(LIBINTL),
> because if the corresponding autoconf macro was not run, it makes the error
> appear on all platforms. Otherwise it's too easy to write a Makefile.am
> that builds fine on glibc systems but not on Solaris or MacOS X.

You can still have this additional safety feature by using both

  LIBINTL = @LIBINTL@

and
  target:
        $(LINK) ... $(LIBINTL)

in your Makefile.in files, or in your fragment.am snippets.

Overridability plus safety net!  :-)

Cheers,
Ralf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]