Jim Meyering <[EMAIL PROTECTED]> writes:

> +BUILT_SOURCES += version.c
> +version.c: Makefile
> +     rm -f $@
> +     printf '#include <config.h>\n' > [EMAIL PROTECTED]
> +     printf 'char const *Version = "$(PACKAGE_VERSION)";\n' >> [EMAIL 
> PROTECTED]
> +     @chmod a-w [EMAIL PROTECTED]
> +     mv [EMAIL PROTECTED] $@

According to the Automake manual, generated .c files do not need
to appear in BUILT_SOURCES:

       `BUILT_SOURCES' is actually a bit of a misnomer, as any
    file which must be created early in the build process can be
    listed in this variable.  Moreover, all built sources do not
    necessarily have to be listed in `BUILT_SOURCES'.  For
    instance, a generated `.c' file doesn't need to appear in
    `BUILT_SOURCES' (unless it is included by another source),
    because it's a known dependency of the associated object.
-- 
Ben Pfaff 
http://benpfaff.org



_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to