LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How to use kdevelop3 to make a source package? (https://www.linuxquestions.org/questions/programming-9/how-to-use-kdevelop3-to-make-a-source-package-209053/)

tx-cary 07-24-2004 05:45 AM

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.

foo_bar_foo 07-25-2004 11:06 PM

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

tx-cary 07-26-2004 07:11 AM

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.

foo_bar_foo 07-27-2004 10:56 PM

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


All times are GMT -5. The time now is 06:43 PM.