automake
[Top][All Lists]
Advanced

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

how to add dependencies to an auto-generated rule?


From: Jeff Rizzo
Subject: how to add dependencies to an auto-generated rule?
Date: Tue, 4 Nov 2003 14:52:41 -0800
User-agent: Mutt/1.4.1i

Hi-

I'm using automake-1.6.3 in a project, and I'm trying to figure out
how to add a dependency to the automake-generated Makefile rules which 
check if the header "autoconf.h" is up to date.

In configure.in, I have:

AM_CONFIG_HEADER(autoconf.h:autoconf.h.in)

which works, and automake puts the following rules in Makefile.in:

autoconf.h: stamp-h1
        @if test ! -f $@; then \
          rm -f stamp-h1; \
          $(MAKE) stamp-h1; \
        else :; fi

stamp-h1: $(srcdir)/autoconf.h.in $(top_builddir)/config.status
        @rm -f stamp-h1
        cd $(top_builddir) && $(SHELL) ./config.status autoconf.h

$(srcdir)/autoconf.h.in:  $(top_srcdir)/configure.in $(ACLOCAL_M4) 
        cd $(top_srcdir) && $(AUTOHEADER)
        touch $(srcdir)/autoconf.h.in


Ideally, I'd like to add a dependency on the file VERSION for the rule
for $(srcdir)/autoconf.h.in ...  is there any way to do this?

Thanks,
+j

-- 
Jeff Rizzo                                         http://boogers.sf.ca.us/~riz




reply via email to

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