LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 07-24-2004, 05:45 AM   #1
tx-cary
Member
 
Registered: Jan 2004
Location: China
Distribution: Mandrake lastest
Posts: 59

Rep: Reputation: 15
How to use kdevelop3 to make a source package?


Containing configure script and Makefile.am.
I used the "release the project" in the "tools" menu, but it said: no rule to create the target "dist".

I remember that I can easily create the source package in Kdevelop2.
 
Old 07-25-2004, 11:06 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 51
configure is kind of complex with kde so i describe the only way i know how to do it
don't know an easier way (sorry)

The KDE scripts are placed in a directory admin in the top directory of your project. They can be obtained via anonymous cvs: (you might know a better server)
export CVSROOT=:pserver:anonymous@anoncvs.kde.org:/home/kde
cvs login
cvs co kde-common/admin
mv kde-common/admin .
rm -r kde-common

cp ./admin/configure.in.min ../
for a begining
cat > ./configure.in.in << "EOF"
#MIN_CONFIG
EOF

now you need two different types of Makefile.am files
one for the top level and one for each subdir
(look at other packages)
top one
you can leave out the first line if you
automake --add-missing
otherwise leave it in
Code:
AUTOMAKE_OPTIONS = foreign 1.5
$(top_srcdir)/acinclude.m4: $(top_srcdir)/admin/acinclude.m4.in $(top_srcdir)/admin/libtool.m4.in
        @cd $(top_srcdir) && cat admin/acinclude.m4.in admin/libtool.m4.in > acinclude.m4 $(top_srcdir)/configure.in: $(top_srcdir)/configure.files $(shell test -f $(top_srcdir)/configure.files && sed -e "s%^%\$(top_srcdir)/%" $(top_srcdir)/configure.files)
        cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common configure.in
$(top_srcdir)/subdirs:
        cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common subdirs
$(top_srcdir)/configure.files:
        cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common configure.files
SUBDIRS=$(TOPSUBDIRS)
for the others
read this

now
make -f admin/Makefile.common cvs
./configure
make

to distribute
make distclean
cd ..
tar czf project.tgz projectdir
 
Old 07-26-2004, 07:11 AM   #3
tx-cary
Member
 
Registered: Jan 2004
Location: China
Distribution: Mandrake lastest
Posts: 59

Original Poster
Rep: Reputation: 15
Oh, Thanks.
But I didn't select CVS support when I creat the project (I don't know any thing about CVS).
And I can't find the directory of "admin" ( It can be found in my kdevelop2 project but not in kdevelop3 project).
I can creat configure script using autoscan, but I don't know how to generate Makefile.am.

Thanks for your help.

Last edited by tx-cary; 07-26-2004 at 07:13 AM.
 
Old 07-27-2004, 10:56 PM   #4
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 51
if you have cvs istalled those command i gave will get you an admin folder
or i imagine you can just copy one from any current kde source package
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
newbie: kdevelop3 in testing d3x7r0 Debian 4 11-22-2005 09:21 AM
package compiling from source, make & make install concepts shujja Linux - Newbie 2 09-20-2005 12:18 AM
kdevelop3! phoenix7 Programming 1 08-09-2004 12:46 AM
kdevelop3.0 automake1.8 autoconf2.59 cjl224 Linux - Software 1 05-08-2004 02:26 AM
how to make rpm package from source tarball? demmylls Linux - General 2 03-10-2004 11:31 AM


All times are GMT -5. The time now is 03:33 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration