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


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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