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