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

What specific tools are available, if any, or should we just use a fake Makefile that runs scons?

share|improve this question
up vote 5 down vote accepted

The debian/rules file is a Makefile. Anything you might want to do in a "fake" Makefile, you can just do there. The dh command Manpage icon is a helper that will run most build systems with Debian defaults for you. I believe it supports scons If so, all you need is:

#!/usr/bin/make -f

    dh $@

You can override its default behavior if you need to pass custom options (or if it doesn't really support scons). Then your rules file might look like:

#!/usr/bin/make -f


    dh $@

    $(SCONS) --prefix=$(DEB_DESTDIR)/usr

    $(SCONS)  -c

    $(SCONS) install --prefix=$(DEB_DESTDIR)/usr

Sometimes, the best way to learn how to do something is to look at how other packages do it. The command:

reverse-depends -b scons

will list all packages that Build-Depend on scons Grab their source and see the different ways they build.

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.