How would a 'SConstruct' file in Scons look like that does what the following code does in GNU Make?
target: dependency0 dependency1
shell command 1 # Not java, cc or the like
shell command 2
shell command 3
I suggest that you at least read the User Guide. It contains an introduction to SCons
, things that every writer of SCons-scripts need to know.
Especially there's the Command
builder that allows you to write rules that have specified prerequisites, target and action. The action itself can be a shell command. What it doesn't say perhaps is that you can provide a list of actions which means that they are executed in sequence (just like make does). That brings us to the SCons
equivalent:
Command("target", ["dependency0", "dependency1"], [
"shell command 1",
"shell command 2",
"shell command 3",
])
There is also special variables that can be used to expand the target and sources of the command, but that is explained in the user guide (and in more detail in the man page).