Bug 61311

Summary: Autoproject manager does not recognise DIST_SUBDIRS
Product: [Applications] kdevelop Reporter: Christian Prochnow <cproch>
Component: Build tools: AutomakeAssignee: kdevelop-bugs-null
Status: RESOLVED LATER    
Severity: normal CC: craig.scott
Priority: HI    
Version: git master   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Christian Prochnow 2003-07-16 15:06:16 UTC
Version:           3.0-cvs (using KDE KDE 3.1.2)
Installed from:    Compiled From Sources
Compiler:          gcc-3.2 
OS:          Linux

I have a Autoconf/Automake project that uses variables to conditinaly select which subdirs should be compiled. 

example Makefile.am:
SUBDIRS = $(MAYBE_NETWORK) $(MAYBE_IPC)
DIST_SUBDIRS = network ipc

Now when i open my project the automake manager does not recognize the DIST_SUBDIRS variable to show me the directories in the tree - it is left empty.
Comment 1 Amilcar do Carmo Lucas 2003-07-18 15:41:11 UTC
It also doesn't read 
EXTRA_DIST 
Comment 2 Robby Stephenson 2004-01-10 03:58:29 UTC
I'd really love to have EXTRA_DIST recognized. Didn't kdevelop2 automatically add files to EXTRA_DIST? Doesn't that makes this bug a regression?
Comment 3 Amilcar do Carmo Lucas 2004-01-11 14:50:21 UTC
OK, making it a regression bug
Comment 4 Craig Scott 2004-08-04 03:17:55 UTC
The automake manager needs to either recognize DIST_SUBDIRS or analyze the Makefile.am to determine all the possible values for each variable listed in SUBDIRS (which is what automake does). The former should be far easier to implement. Until this bug is fixed, entire subtrees will be omitted from the file list when conditional SUBDIRS are used, with no way for the user to coerce the automake manager to include those subdirectories.
Comment 5 Amilcar do Carmo Lucas 2004-08-04 15:53:54 UTC
KDevelop has a workaround for it.
Here is an example extracted from kdevelop/languages/Makefile.am :

##
## Do NOT remove the comments that start with "kdevelop:"
## They are actually directives to the kdevelop plugin system
##
## The include_xxxx variables are controlled by configure.in.in
##

if include_ada
ADA_LANGUAGE = ada
endif

if include_bash
BASH_LANGUAGE = bash
endif

...

#kdevelop: ADA_LANGUAGE = ada
#kdevelop: BASH_LANGUAGE = bash

...

SUBDIRS = $(ADA_LANGUAGE) $(BASH_LANGUAGE)
Comment 6 Andreas Pakulat 2008-07-05 20:46:55 UTC
Please Re-Open once KDevelop4 has Automake support and the same problem.