Ethereal-dev: Re: [ethereal-dev] Targets dependent on proto.h

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Ben Fowler <wapdev@xxxxxxxxxxxx>
Date: Thu, 20 Apr 2000 19:50:32 +0100

If you're using checked-out source, then automake should have
created an appropriate Makefile.in that has this clause in it:

%.o: %.c
        @echo '$(COMPILE) -c $<'; \
        $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
        @-cp .deps/$(*F).pp .deps/$(*F).P; \
        tr ' ' '\012' < .deps/$(*F).pp \
          | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
            >> .deps/$(*F).P; \
        rm .deps/$(*F).pp

Further to this, I have created a Makefile.in from the CVS Makefile.am
using automake, and this seems to have set things up the same as
other people's. Despite my not noticing my having done it, I must have
copied a Makefile.in from a standalone distribution into my CVS
directory. Should there be a clause in the Makefile that generates
a new Makefile.in and Makefile whenever Makefile.am is modified?

Ben.



--
Leedsnet - The information resource for Leeds and the West Riding
< URL:http://www.leedsnet.com/mobile/ >