help-make
[Top][All Lists]
Advanced

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

Re: adding dependencies


From: Paul D. Smith
Subject: Re: adding dependencies
Date: Tue, 28 Oct 2003 12:37:53 -0500

%% Noel Yap <address@hidden> writes:

  ny> I'd like to use a pattern rule to build a target, but I'd also
  ny> like to add an order dependency.  For example:

  ny> %/.:
  ny>   mkdir -p $@

  ny> %.cc %.h: %.y
  ny>   $(BisonRule)

  ny> $(DIR)/my.cc: | $(DIR)/.
  ny> $(DIR)/my.h: | $(DIR)/.

  ny> Is this possible?  If not, would it make sense to make it possible?

Offhand I'd say this should work.

I assume, since you're asking, that it doesn't?

-- 
-------------------------------------------------------------------------------
 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]