[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: automake 'dist' target distributes built source file
From: |
Ralf Corsepius |
Subject: |
Re: automake 'dist' target distributes built source file |
Date: |
Mon, 24 Jul 2006 08:20:47 +0200 |
On Sat, 2006-07-22 at 19:19 +0200, Bruno Haible wrote:
> Hi,
>
> automake-1.9.6 insists on distributing a file, although I have
> - not listed it in EXTRA_DIST,
> - listed it in BUILT_SOURCES and in CLEANFILES.
>
> To reproduce:
>
> ============================== Makefile.am ============================
> AUTOMAKE_OPTIONS = 1.5 foreign
>
> include_HEADERS = gettext-po.h
> EXTRA_DIST = gettext-po.h.in
> BUILT_SOURCES = gettext-po.h
> CLEANFILES = gettext-po.h
>
> gettext-po.h: gettext-po.h.in
> cp $(srcdir)/gettext-po.h.in gettext-po.h-tmp
> mv gettext-po.h-tmp gettext-po.h
> =======================================================================
>
> ============================= configure.ac ============================
> AC_INIT
> AC_CONFIG_SRCDIR(configure.ac)
> AM_INIT_AUTOMAKE(foo, 0.0)
> AC_CONFIG_FILES([Makefile])
> AC_OUTPUT
> =======================================================================
> I want to distribute gettext-po.h.in, but I don't want to distribute
> gettext-po.h because it is actually platform dependent (not visible in
> this small example here).
>
> How do I need to write this?
Replacing the "include_HEADERS" above with
nodist_include_HEADERS = gettext-po.h
should do what you want.
include_HEADERS are always distributed.
Ralf