This is the mail archive of the
automake-prs@sourceware.org
mailing list for the automake project.
Re: automake/476: "make dist" target fails when directory x exists as well as x.[ch]
- From: Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>
- To: adl at sources dot redhat dot com
- Cc: automake-prs at sources dot redhat dot com,
- Date: 21 Apr 2006 08:41:01 -0000
- Subject: Re: automake/476: "make dist" target fails when directory x exists as well as x.[ch]
- Reply-to: Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>
The following reply was made to PR automake/476; it has been noted by GNATS.
From: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
To: automake-gnats@sources.redhat.com, jim@yonan.net,
automake-prs@sources.redhat.com
Cc:
Subject: Re: automake/476: "make dist" target fails when directory x exists as well as x.[ch]
Date: Fri, 21 Apr 2006 10:33:34 +0200
http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=automake&pr=476
Hello, and sorry for the huge delay,
| planet:~/tmp/openvpn# make dist
| gcc -g -O2 -I. plugin.c -o plugin
| /usr/bin/ld: cannot open output file plugin: Is a directory
This happens because 'make' still remembers its builtin rules to create
a program 'foo' from its supposed source 'foo.c'.
There are two alternative workarounds:
- use 'make -r dist' to disable builtin rules
- add this to Makefile.am to override the internal rule:
# prevent builtin make rules to try to update the directory 'plugin'
# from the source file 'plugin.c'.
plugin:
@:
I don't know of a simple fix for Automake that would not break other
uses.
Hope that helps,
Ralf