Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Hope this is not a stupid question. But here it goes...

Over the last month I have learned Programming in C and Gtk to a point where I have written a small program in C.

I would like to make a ubuntu package of my program. The project contains 3 glade files and 1 C file. I know that there is documentation on packaging ubuntu packages from a tar ball as per this question. How to create deb installer from tarballs?

But my question is how do I go from the 4 files to the tar ball state? I am not looking for the tar -cf ...

What I am looking for is a guide that will help me create configure / makefiles ect.

share|improve this question
1  
Please improve the question title, configure/makefiles are not related to the "ubuntu package" development process, that is part of the regular source building process. –  João Pinto Nov 29 '10 at 13:32

2 Answers 2

up vote 3 down vote accepted

Source building for C applications is most commonly managed with the autotools utilites, using autotools is not trivial, better check a tutorial: http://markuskimius.wikidot.com/programming:tut:autotools

share|improve this answer

To create configure/makefiles you must use the GNU autotools. Follow the tutorial at http://www.lrde.epita.fr/~adl/autotools.html

The resulting Makefile will be able to create the tarball for you.

To make a .deb file containing your application, follow the guide at https://wiki.ubuntu.com/PackagingGuide/Complete

I think that what you are looking for :)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.