Bug 76871 - Support adding any kind of file to targets in the buildsystem
Summary: Support adding any kind of file to targets in the buildsystem
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 4.0.0
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-06 09:25 UTC by Sylvain Joyeux
Modified: 2009-01-24 02:36 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sylvain Joyeux 2004-03-06 09:25:08 UTC
Version:           CVS HEAD (using KDE KDE 3.2.0)
Installed from:    Debian testing/unstable Packages

The KDE build scripts support dcopidl. You just have to add "foo.skel" and/or "foo.stub" files in the _SOURCES field, and the scripts will build the corresponding foo_skel.cpp and foo_stub.{cpp,h} for you, using foo.h

The problem here is that the automake part does not support adding non-existent files.
Comment 1 Jens Dagerbo 2004-03-06 13:34:37 UTC
True. The hackish workaround - create "blank" files with the needed name and add them to the target. This will get the build system to do the right thing.

There need be explicit support though, I agree.
Comment 2 Sylvain Joyeux 2004-03-06 13:52:24 UTC
The workaround I use now is to manually edit the Makefile.am and then reload the project. Since I don't create skel and stub files very often, it's enough for now. The bugreport was just to get sure it would be fixed in future releases.
Comment 3 Andreas Pakulat 2008-06-29 18:16:04 UTC
I don't think its reasonable to completely limit the files that can be added to a target, the file-dialog of course should supply a reasonable default filter for code-files, but you shouldn't limit the user to add other file types. Changing the summary accordingly
Comment 4 Andreas Pakulat 2009-01-24 02:36:30 UTC
this should work nowadays actually. in kdev4