Nameing issue with automake

Lorenzo Delana ldelana at libero.it
Tue Jun 26 00:17:27 UTC 2001


On Tuesday 26 June 2001 02:13, you wrote:

> I have created a folder like
> 	folder-containing-minus-and.dot
> when I create into it a class and then KDevelop insert the Makefile.am for
> the library, in my case, I receive follow error from AutoMake:
>
> from Makefile.am, KDevelop auto-generated:
>
> bad macro name
> `folder-containing-minus-and_dot_a_METASOURCES'
> bad macro name `folder-containing-minus-and_dot_a_SOURCES'
> invalid unused variable name: `folder-containing-minus-and_dot_a_SOURCES'
>

Corresponding makefile.am should be of the form:

####### kdevelop will overwrite this part!!! (begin)##########

INCLUDES = $(all_includes)

libfolder_containing_minus_and_dot_a_METASOURCES = AUTO

noinst_LIBRARIES = libfolder_containing_minus-and.dot.a
# noinst_LIBRARIES doesn't apply the 'normlize(...)'

libfolder_with_minus_and_dot_a_SOURCES = file.cpp


EXTRA_DIST = file.cpp file.h

####### kdevelop will overwrite this part!!! (end)############


> the problem is not in automake, but in the wrong mapping from
> 	"folder name" -> normalized("folder name");
>
> to correct this error, should be inserted a function like the above
> normalize(string s); where
>
> normalize(string s) {
> 	// convert all - and . to _ @see automake nameing conventions
> }
>
> Lore
>
> -
> to unsubscribe from this list send an email to
> kdevelop-devel-request at kdevelop.org with the following body: unsubscribe
> »your-email-address«

-
to unsubscribe from this list send an email to kdevelop-devel-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop-devel mailing list