Re: creating the $(SUBDIRS) at runtime?

2005-10-07 Thread Harald Dunkel
Simon Richter wrote:
 Hi,
 
 Harald Dunkel wrote:
 
 I would like to create the directories for some
 $SUBDIRS as needed at runtime, e.g.
 
 
 erm, why?
 
 Unfortunately Automake complains about the missing
 directories in the source tree.
 
 
 Yes, because the structure of the source tree is supposed to be pretty
 much static (in fact, your package should be able to build with the
 source tree on read-only media), so it doesn't make sense to name
 directories that aren't there.
 

Probably a misunderstanding. The actions performed in the
build directory do not depend upon an empty directory
in the source tree, so why do I have to create it?

 (Part of the problem is that CVS doesn't allow to
 rename files or directories, so I would like to avoid
 checking in empty directories.)
 
 

Regards

Harri




creating the $(SUBDIRS) at runtime?

2005-10-06 Thread Harald Dunkel
Hi folks,

I would like to create the directories for some
$SUBDIRS as needed at runtime, e.g.

:
SUBDIRS = mydir

mydir/Makefile: FORCE
${INSTALL} -d mydir
generate $@
:

Unfortunately Automake complains about the missing
directories in the source tree.

Of course the workaround is easy, but I wonder why
Automake tries to verify whether a source directory
exists?

(Part of the problem is that CVS doesn't allow to
rename files or directories, so I would like to avoid
checking in empty directories.)


Many thanx

Harri




Re: creating the $(SUBDIRS) at runtime?

2005-10-06 Thread Simon Richter

Hi,

Harald Dunkel wrote:


I would like to create the directories for some
$SUBDIRS as needed at runtime, e.g.


erm, why?


Unfortunately Automake complains about the missing
directories in the source tree.


Yes, because the structure of the source tree is supposed to be pretty 
much static (in fact, your package should be able to build with the 
source tree on read-only media), so it doesn't make sense to name 
directories that aren't there.



(Part of the problem is that CVS doesn't allow to
rename files or directories, so I would like to avoid
checking in empty directories.)


Just create a file .cvssucks in that dir, then it's no longer empty. 
:-) (or use a sane versioning system, like cogito).


   Simon


signature.asc
Description: OpenPGP digital signature