automake
[Top][All Lists]
Advanced

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

Re: using same automake conditional twice doesn't work?


From: Paul Smith
Subject: Re: using same automake conditional twice doesn't work?
Date: 07 Jun 2005 12:00:39 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4

%% Ed Hartnett <address@hidden> writes:

  eh> SUBDIRS = man

  eh> if BUILD_F77
  eh> SUBDIRS += fortran
  eh> endif

  eh> SUBDIRS += libsrc nc_test ncgen ncdump nctest

  eh> # If we're building the f77 API, test it too.
  eh> if BUILD_F77
  eh> SUBDIRS += nf_test
  eh> endif

There's a much better way to do this.  Try:

  if BUILD_F77
      PRE_SDIRS = fortran
      POST_SDIRS = nf_test
  endif

  SUBDIRS = man $(PRE_SDIRS) nc_test ncgen ncdump nctest $(POST_SDIRS)


Cheers!

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>           HASMAT--HA Software Mthds & Tools
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
   These are my opinions---Nortel Networks takes no responsibility for them.




reply via email to

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