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 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:
The
debian/rules
file is a Makefile. Anything you might want to do in a "fake" Makefile, you can just do there. Thedh
command is a helper that will run most build systems with Debian defaults for you. I believe it supportsscons
If so, all you need is: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:Sometimes, the best way to learn how to do something is to look at how other packages do it. The command:
will list all packages that Build-Depend on
scons
Grab their source and see the different ways they build.