[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to add a dependency to destdir?
From: |
Alexandre Duret-Lutz |
Subject: |
Re: how to add a dependency to destdir? |
Date: |
Mon, 24 Feb 2003 16:31:10 +0100 |
User-agent: |
Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu) |
>>> "Bruno" == Bruno Haible <address@hidden> writes:
Bruno> Hi,
Bruno> How can I add a dependency to the 'distdir' target, as
Bruno> generated by automake
Generally you can't add dependencies to Automake rules. This is
because Automake doesn't differentiate Makefile rules that
specify commands from Makefile rules that specify only
dependencies. If you write `distdir: foobar', Automake will
assume you want to override its `distdir:' rule.
This sucks, but the Automake guts are not ready to make this
difference. (That's a "to do", though.)
Bruno> and as invoked by the parent directory's Makefile? I
Bruno> need to update some files before a release.
And these files aren't already in $(DISTFILES)? Maybe you are
looking for `dist-hook' then.
[...]
Bruno> How can I achieve this? The only way I've found is to comment out the
Bruno> dependency line in Makefile.am:
Bruno> ========================= Makefile.am =======================
Bruno> AUTOMAKE_OPTIONS = 1.5 foreign no-dependencies
Bruno> subconfigure:
Bruno> echo "created by autoconf" > subconfigure
Bruno> #distdir: subconfigure
Bruno> =============================================================
Bruno> and to postprocess the Makefile so as to remove the '#' mark.
Bruno> This is hardly satisfactory.
I guess another workaround would be to use an empty variable so
that Automake doesn't recognize the distdir rule.
dist$(emptyhack)dir: subconfigure
--
Alexandre Duret-Lutz