[llvm-commits] CVS: llvm/Makefile.rules configure

John Criswell criswell at cs.uiuc.edu
Tue Nov 25 12:27:02 PST 2003

Misha Brukman wrote:
> On Tue, Nov 25, 2003 at 11:49:32AM -0600, John Criswell wrote:
>>Changes in directory llvm:
>>Makefile.rules updated: 1.159 -> 1.160
>>configure updated: 1.57 -> 1.58
>>Log message:
>>Added a pseudo-hack: The Makefile now copies Makefiles from source tree to
>>object tree if it is missing.  This means that new Makefiles should get
>>picked up automagically, requiring less bothersome re-configuring after
> Uhm... I've already added a pseudo-hack for that:
> [snip from bottom of Makefile.rules]
> # If the Makefile in the source tree has been updated, copy it over into the
> # build tree.
> Makefile :: $(BUILD_SRC_DIR)/Makefile
>   @${ECHO} "===== Updating Makefile from source dir: `dirname $<` ====="
>   cp -f $< $@

	Mine is designed to replace the work done by autoconf (i.e. configure 
no longer copies over all of the Makefiles and creates all of the 
subdirectories.  The master Makefile does this as needed).  This avoids 
having to change autoconf/configure.ac every time we add a new directory 
with a new Makefile (although at times that will still be necessary).

	I'm planning on adding stuff later that will do better dependency 
checking (i.e. create the directories and Makefiles only if they don't 

-- John T.

* John T. Criswell                         Email: criswell at uiuc.edu *
* Research Programmer                                               *
* University of Illinois at Urbana-Champaign                        *
*                                                                   *
* "It's today!" said Piglet. "My favorite day," said Pooh.          *

More information about the llvm-commits mailing list