From: Nobuyoshi Nakada Date: 2007-06-11T13:33:53+09:00 Subject: Re: Doing rake-like stuff with mkmf? Hi, At Sat, 9 Jun 2007 23:15:08 +0900, Wincent Colaiuta wrote in [ruby-talk:254933]: > But what if I want to do some more sophisticated rake-like stuff where > I manually specify dependencies? For example: > > * Start with ANTLR grammar file "Grammar.g" > > * Whenever this file is updated, have to run ANTLR on it and this > regenerates new "GrammarLexer.c" and "GrammarParser.c" files > > * In this case want to rebuild the extension > > Is there a way to do this using mkmf? Or do I have to manually tweak > the generated Makefile myself? create_makefie in mkmf appends the content of "depend" file if it exists, so that you can add your own rules. -- Nobu Nakada