[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    kde-common am_edit problems
From:       Michael Buesch <mbuesch () freenet ! de>
Date:       2005-03-25 10:14:49
Message-ID: 200503251114.49401.mbuesch () freenet ! de
[Download RAW message or body]


Hi,

I have a Makefile.am, which does something like that:
(I cut it down to the interresting parts)


noinst_LTLIBRARIES = libpwmanager_smartkey.la

INCLUDES = -I$(srcdir)/../.. $(all_includes)

if COND_PWMANAGER_CHIPCARD1
CHIPCARD_INTERFACE=chipcard1interface.cpp
endif
if COND_PWMANAGER_CHIPCARD2
CHIPCARD_INTERFACE=chipcard2interface.cpp
endif

libpwmanager_smartkey_la_SOURCES = smartkey.cpp \
				   smartkey_backend.cpp \
				   $(CHIPCARD_INTERFACE)

noinst_HEADERS = chipcard1interface.h \
		 chipcard2interface.h \
		 smartkey.h \
		 smartkey_backend.h

METASOURCES = AUTO


My problem is, that metasources (.moc) rules are not generated
by am_edit. This results in build failure, obviously.

If I do the following patch to am_edit, it works
and .moc files are generated properly.

Index: am_edit
===================================================================
RCS file: /home/kde/kde-common/admin/am_edit,v
retrieving revision 1.414
diff -u -p -r1.414 am_edit
--- am_edit     1 Mar 2005 18:43:12 -0000       1.414
+++ am_edit     25 Mar 2005 10:11:32 -0000
@@ -636,7 +636,7 @@ sub initialise ()
                    my @addlist = split(/[\034\s]+/, $varcontent{$variable});
                    push(@objlist, @addlist);
                 } elsif ($variable !~ 'OBJEXT') {
-                    $ocv = 1;
+#                    $ocv = 1;
                }
             }
         }


I see that this is not the correct solution. How to fix this correctly?

The string in the Makefile.in, which is parsed here looks like this:

@COND_PWMANAGER_CHIPCARD1_FALSE@@COND_PWMANAGER_CHIPCARD2_TRUE@am__objects_1 = chipcard2interface.lo
@COND_PWMANAGER_CHIPCARD1_TRUE@am__objects_1 = chipcard1interface.lo
am_libpwmanager_smartkey_la_OBJECTS = smartkey.lo smartkey_backend.lo \
	$(am__objects_1)

-- 
Regards Michael Buesch  [ http://www.tuxsoft.de.vu ]



[Attachment #3 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic