Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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
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:

share|improve this answer

To create configure/makefiles you must use the GNU autotools. Follow the tutorial at

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

To make a .deb file containing your application, follow the guide at

I think that what you are looking for :)

share|improve this answer

Your Answer


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.