automake
[Top][All Lists]
Advanced

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

Re: I: adjust test suite for upcoming GNU Make 3.83


From: Paul D. Smith
Subject: Re: I: adjust test suite for upcoming GNU Make 3.83
Date: 01 Jul 2005 17:35:36 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4

FYI, here's one way to handle it (obviously requires GNU make):

  ifeq (,$(filter second-expansion,$(.FEATURES)))
    # GNU make <3.81
    PRE_D := $$
  else
    # GNU make >=3.81
    PRE_D := $$$$
  endif

  # Now use PRE_D in prerequisites

  all: foo$(PRE_D)bar ; @echo '$@: $<'

  foo$$bar: ; @echo 'building $@'


-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

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