This is the mail archive of the automake-prs@sourceware.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: automake/476: "make dist" target fails when directory x exists as well as x.[ch]


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]