automake
[Top][All Lists]
Advanced

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

Re: 3DLDF (fwd)


From: Laurence Finston
Subject: Re: 3DLDF (fwd)
Date: Sun, 16 Nov 2003 19:34:42 +0100 (MET)

Thanks, but I think I've got the problem of directing recompilation
solved.

My problem now is the `dist' target. It doesn't seem to be possible to
override it. I've written a `distrib' target which does what I want, but
the `dist' target should work.  I couldn't get
"nodist_3dldf_SOURCES" to work. In some manual or other I saw
some variables that could
be used for including or excluding files from a distribution, but now I
can't find the place. It's not "What Goes in a Distribution" in the
Automake manual. It might be the Autoconf manual, the Make manual, or the
GNU Coding Standards, but I couldn't find them in any of the indexes.
Does anyone know what they could be? They all had names in uppercase.

For certain files, it's not enough to delete them
afterwards
using dist-hook,
because they don't exist, and make fails when it can't find them.
This happened with 3dldf.info*.

The easiest solution would be to override the dist target. Is this
possible after all?

Laurence Finston


On Sun, 16 Nov 2003, Alexandre Duret-Lutz wrote:

> | Another possibility is to use a stamp file to represent the
> | output of the tool.  (Above parser.c was used for this purpose.)
> |
> |   .web.wstamp:
> |           $(CTANGLE) $<  # Or whatever the syntax is.
>
> Oops.  This rule should obviously create the stamp file too.
> Furthermore, it's preferable that the stamp files be older than
> the real output files, so that the .wstamp.h and .wstamp.c are
> not triggered uselessly.  For instance
>
>    .web.wstamp:
>            : > t-$@
>            $(CTANGLE) $<  # Or whatever the syntax is.
>            mv t-$@ $@
>
> |   .wstamp.h:
> |   ## Recover from the removal of $@
> |           @if test -f $@; then : else \
> |              rm -f $<; \
> |              $(MAKE) $<; \
> |           fi
> |
> |   .wstamp.c:
> |   ## Recover from the removal of $@
> |           @if test -f $@; then : else \
> |              rm -f $<; \
> |              $(MAKE) $<; \
> |           fi
> --
> Alexandre Duret-Lutz
>
>




reply via email to

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