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.
It also doesn't read EXTRA_DIST
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?
OK, making it a regression bug
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.
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)
Please Re-Open once KDevelop4 has Automake support and the same problem.