4

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

5

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

SCONS=scons 

%:
    dh $@

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

override_dh_auto_clean:
    dh_auto_clean
    $(SCONS)  -c

override_dh_auto_install:
    $(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 acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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