help-make
[Top][All Lists]
Advanced

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

how to prepend a dependency?


From: Robert P. J. Day
Subject: how to prepend a dependency?
Date: Sun, 20 Aug 2006 06:34:06 -0400 (EDT)

  i have a sizable, recursive make structure, and some top-level
included makefiles that define how to build various things like
libraries, executables and the like.

  recently, one of the low-level directories needed a change in that,
to build an executable *just in that directory*, something minor needs
to be done first before the regular rule is invoked.

  the quick and dirty way i can see to fix this is to just add that
initial dependency before including the makefile:

        build:  <new initial dependency here>
        include mymake.mk

as i understand it, the regular "build" dependencies will then be
appended to my preliminary rule.

is that an acceptable way to do this?  it seems kind of tacky but it
appears to work.

rday




reply via email to

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